Program Listing for File depth_to_space.h
↰ Return to documentation for file (include/converter/include/ops/depth_to_space.h
)
#ifndef MINDSPORE_CORE_OPS_DEPTH_TO_SPACE_H_
#define MINDSPORE_CORE_OPS_DEPTH_TO_SPACE_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "mindapi/base/format.h"
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameDepthToSpace = "DepthToSpace";
class MIND_API DepthToSpace : public BaseOperator {
public:
MIND_API_BASE_MEMBER(DepthToSpace);
DepthToSpace() : BaseOperator(kNameDepthToSpace) { InitIOName({"x"}, {"y"}); }
void Init(const int64_t block_size, const Format &format = NCHW);
void set_block_size(const int64_t block_size);
int64_t get_block_size() const;
void set_format(const Format &format);
Format get_format() const;
std::string get_mode() const;
};
MIND_API abstract::AbstractBasePtr DepthToSpaceInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
const std::vector<abstract::AbstractBasePtr> &input_args);
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_DEPTH_TO_SPACE_H_