Program Listing for File batch_to_space.h
↰ Return to documentation for file (include/converter/include/ops/batch_to_space.h
)
#ifndef MINDSPORE_CORE_OPS_BATCH_TO_SPACE_H_
#define MINDSPORE_CORE_OPS_BATCH_TO_SPACE_H_
#include <memory>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameBatchToSpace = "BatchToSpace";
class MIND_API BatchToSpace : public BaseOperator {
public:
MIND_API_BASE_MEMBER(BatchToSpace);
BatchToSpace() : BaseOperator(kNameBatchToSpace) {}
void Init(const std::vector<int64_t> &block_size, const std::vector<std::vector<int64_t>> &crops);
void set_block_size(const std::vector<int64_t> &block_size);
void set_crops(const std::vector<std::vector<int64_t>> &crops);
std::vector<int64_t> get_block_size() const;
std::vector<std::vector<int64_t>> get_crops() const;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_BATCH_TO_SPACE_H_