Home
last modified time | relevance | path

Searched refs:ResizeOperation (Results 1 – 8 of 8) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/ir/vision/
Dresize_ir.cc26 ResizeOperation::ResizeOperation(const std::vector<int32_t> &size, InterpolationMode interpolation) in ResizeOperation() function in mindspore::dataset::vision::ResizeOperation
29 ResizeOperation::~ResizeOperation() = default;
31 std::string ResizeOperation::Name() const { return kResizeOperation; } in Name()
33 Status ResizeOperation::ValidateParams() { in ValidateParams()
46 std::shared_ptr<TensorOp> ResizeOperation::Build() { in Build()
64 Status ResizeOperation::to_json(nlohmann::json *out_json) { in to_json()
72 Status ResizeOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *opera… in from_json()
77 *operation = std::make_shared<vision::ResizeOperation>(size, interpolation); in from_json()
Dresize_ir.h38 class ResizeOperation : public TensorOperation {
40 explicit ResizeOperation(const std::vector<int32_t> &size, InterpolationMode interpolation);
42 ~ResizeOperation();
/third_party/mindspore/tests/ut/cpp/dataset/
Dir_vision_test.cc258 …std::shared_ptr<TensorOperation> resize_op1(new vision::ResizeOperation({30, -30}, InterpolationMo… in TEST_F()
263 …std::shared_ptr<TensorOperation> resize_op2(new vision::ResizeOperation({0, 30}, InterpolationMode… in TEST_F()
268 …std::shared_ptr<TensorOperation> resize_op3(new vision::ResizeOperation({30, 20, 10}, Interpolatio… in TEST_F()
Ddeserialize_test.cc125 …std::shared_ptr<TensorOperation> operation14 = std::make_shared<vision::ResizeOperation>(size, int… in TEST_F()
236 …std::shared_ptr<TensorOperation> operation2 = std::make_shared<vision::ResizeOperation>(size, inte… in TEST_F()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/bindings/dataset/kernels/ir/image/
Dbindings.cc539 PYBIND_REGISTER(ResizeOperation, 1, ([](const py::module *m) { in __anon574f76b44e02()
540 …(void)py::class_<vision::ResizeOperation, TensorOperation, std::shared_ptr<vision::ResizeOperation in __anon574f76b44e02()
543 … auto resize = std::make_shared<vision::ResizeOperation>(size, interpolation_mode); in __anon574f76b44e02()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/
Dserdes.cc309 ops_ptr[vision::kResizeOperation] = &(vision::ResizeOperation::from_json); in InitializeFuncPtr()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/
Dvision.cc840 return std::make_shared<ResizeOperation>(data_->size_, data_->interpolation_); in Parse()
853 return std::make_shared<ResizeOperation>(data_->size_, data_->interpolation_); in Parse()
/third_party/mindspore/mindspore/dataset/vision/
Dc_transforms.py1559 return cde.ResizeOperation(self.size, DE_C_INTER_MODE[self.interpolation])