Home
last modified time | relevance | path

Searched refs:ResizeMethod (Results 1 – 25 of 38) sorted by relevance

12

/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Dresize_tests.cc25 OpParameter *CreateParameter(schema::ResizeMethod method, int new_height, int new_width, bool align… in CreateParameter()
39 schema::ResizeMethod method = schema::ResizeMethod_LINEAR; in TEST_F()
55 schema::ResizeMethod method = schema::ResizeMethod_LINEAR; in TEST_F()
71 schema::ResizeMethod method = schema::ResizeMethod_NEAREST; in TEST_F()
87 schema::ResizeMethod method = schema::ResizeMethod_LINEAR; in TEST_F()
104 schema::ResizeMethod method = schema::ResizeMethod_LINEAR; in TEST_F()
120 schema::ResizeMethod method = schema::ResizeMethod_NEAREST; in TEST_F()
/third_party/mindspore/mindspore/core/ops/
Dcrop_and_resize.cc25 void CropAndResize::Init(ResizeMethod method, float extrapolation_value) { in Init()
30 void CropAndResize::set_method(ResizeMethod method) { in set_method()
39 ResizeMethod CropAndResize::get_method() const { in get_method()
41 return ResizeMethod(GetValue<int64_t>(value_ptr)); in get_method()
Dcrop_and_resize.h38 void Init(ResizeMethod method, float extrapolation_value);
41 void set_method(ResizeMethod method);
47 ResizeMethod get_method() const;
Dresize.h53 …void Init(const Format format, const ResizeMethod method, const int64_t new_height, const int64_t …
66 void set_method(const ResizeMethod method);
118 ResizeMethod get_method() const;
Dresize.cc28 void Resize::Init(const Format format, const ResizeMethod method, const int64_t new_height, const i… in Init()
48 void Resize::set_method(const ResizeMethod method) { in set_method()
86 ResizeMethod Resize::get_method() const { in get_method()
88 return ResizeMethod(GetValue<int64_t>(value_ptr)); in get_method()
/third_party/mindspore/mindspore/core/ops/grad/
Dresize_grad.cc28 void ResizeGrad::Init(const ResizeMethod method, const bool align_corners) { in Init()
33 void ResizeGrad::set_method(const ResizeMethod method) { in set_method()
42 ResizeMethod ResizeGrad::get_method() const { in get_method()
45 return ResizeMethod(GetValue<int64_t>(value_ptr)); in get_method()
Dresize_grad.h33 void Init(const ResizeMethod method, const bool align_corners);
34 void set_method(const ResizeMethod method);
36 ResizeMethod get_method() const;
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_resize_parser.cc55 std::map<std::string, mindspore::ResizeMethod> resize_mode = { in Parse()
56 {"nearest", mindspore::ResizeMethod::NEAREST}, in Parse()
57 {"linear", mindspore::ResizeMethod::LINEAR}, in Parse()
58 {"cubic", mindspore::ResizeMethod::CUBIC}, in Parse()
Donnx_upsample_parser.cc29 prim->set_method(mindspore::ResizeMethod::NEAREST); // use bilinear method in Parse()
38 prim->set_method(onnx_node_attr.s() == "nearest" ? mindspore::ResizeMethod::NEAREST in Parse()
39 : mindspore::ResizeMethod::LINEAR); in Parse()
/third_party/mindspore/mindspore/lite/tools/converter/parser/tf/
Dtf_resize_parser.cc49 prim->set_method(mindspore::ResizeMethod::LINEAR); in Parse()
51 prim->set_method(mindspore::ResizeMethod::NEAREST); in Parse()
53 prim->set_method(mindspore::ResizeMethod::CUBIC); in Parse()
55 prim->set_method(mindspore::ResizeMethod::UNKNOWN); in Parse()
Dtf_crop_and_resize_parser.cc43 prim->set_method(mindspore::ResizeMethod::LINEAR); in Parse()
45 prim->set_method(mindspore::ResizeMethod::NEAREST); in Parse()
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_resize_parser.cc57 prim->set_method(mindspore::ResizeMethod::LINEAR); in Parse()
72 prim->set_method(mindspore::ResizeMethod::NEAREST); in Parse()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/base/
Dresize_base.h24 using mindspore::schema::ResizeMethod;
Dresize_base.cc42 if (method_ == schema::ResizeMethod::ResizeMethod_UNKNOWN) { in CheckParameters()
/third_party/mindspore/mindspore/lite/tools/converter/parser/caffe/
Dcaffe_upsample_parser.cc29 prim->set_method(mindspore::ResizeMethod::NEAREST); in Parse()
Dcaffe_interp_parser.cc28 prim->set_method(mindspore::ResizeMethod::LINEAR); in Parse()
/third_party/mindspore/mindspore/lite/schema/
Dops_types_generated.h21 enum ResizeMethod : int8_t { enum
30 inline const ResizeMethod (&EnumValuesResizeMethod())[4] { in EnumValuesResizeMethod()
31 static const ResizeMethod values[] = { in EnumValuesResizeMethod()
51 inline const char *EnumNameResizeMethod(ResizeMethod e) { in EnumNameResizeMethod()
Dops_types.fbs19 enum ResizeMethod: byte {
Dops.fbs831 method: ResizeMethod;
1064 method: ResizeMethod;
1105 method: ResizeMethod;
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/int8/
Dresize_int8.h25 using mindspore::schema::ResizeMethod;
/third_party/mindspore/mindspore/lite/src/delegate/npu/op/
Dresize_npu.h46 schema::ResizeMethod resize_method_ = schema::ResizeMethod_UNKNOWN;
/third_party/mindspore/mindspore/lite/mindir/include/
Dmindir_types.h106 enum ResizeMethod : int8_t { enum
Dmindir.h301 PrimitivePtr MindIR_Resize_CreatePrimitive(ResizeMethod method, int64_t new_height, int64_t new_wid…
306 ResizeMethod MindIR_Resize_GetMethod(ConstPrimitivePtr primitive);
307 void MindIR_Resize_SetMethod(PrimitivePtr *primitive, ResizeMethod method);
/third_party/mindspore/mindspore/lite/micro/coder/opcoders/nnacl/int8/
Dresize_int8_coder.cc84 …OR) << "unsupported: " << schema::EnumNameResizeMethod(static_cast<schema::ResizeMethod>(method_)); in DoCode()
/third_party/mindspore/mindspore/lite/tools/converter/import/
Dprimitive_adjust.cc482 dst_prim->set_method(ResizeMethod::LINEAR); in MoveAttrMapResize()
484 dst_prim->set_method(ResizeMethod::NEAREST); in MoveAttrMapResize()
527 dst_prim->set_method(ResizeMethod::LINEAR); in MoveAttrMapResizeGrad()
529 dst_prim->set_method(ResizeMethod::NEAREST); in MoveAttrMapResizeGrad()

12