Home
last modified time | relevance | path

Searched refs:NearestMode (Results 1 – 19 of 19) sorted by relevance

/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_resize_parser.cc32 prim->set_nearest_mode(mindspore::NearestMode::ROUND_HALF_DOWN); in Parse()
62 std::map<std::string, mindspore::NearestMode> nearest_mode = { in Parse()
63 {"round_prefer_floor", mindspore::NearestMode::ROUND_HALF_DOWN}, in Parse()
64 {"round_prefer_ceil", mindspore::NearestMode::ROUND_HALF_UP}, in Parse()
65 {"floor", mindspore::NearestMode::FLOOR}, in Parse()
66 {"ceil", mindspore::NearestMode::CEIL}, in Parse()
/third_party/mindspore/mindspore/core/ops/
Dresize.h56 const NearestMode nearest_mode);
108 void set_nearest_mode(const NearestMode nearest_mode);
158 NearestMode get_nearest_mode() const;
Dresize.cc31 const NearestMode nearest_mode) { in Init()
76 void Resize::set_nearest_mode(const NearestMode nearest_mode) { in set_nearest_mode()
124 NearestMode Resize::get_nearest_mode() const { in get_nearest_mode()
126 return NearestMode(GetValue<int64_t>(value_ptr)); in get_nearest_mode()
/third_party/mindspore/mindspore/lite/schema/
Dops_types_generated.h90 enum NearestMode : int8_t { enum
100 inline const NearestMode (&EnumValuesNearestMode())[5] { in EnumValuesNearestMode()
101 static const NearestMode values[] = { in EnumValuesNearestMode()
123 inline const char *EnumNameNearestMode(NearestMode e) { in EnumNameNearestMode()
Dops_types.fbs32 enum NearestMode : byte {
Dops_v0.fbs37 enum NearestMode : byte {
416 nearestMode : NearestMode;
Dops.fbs839 nearest_mode: NearestMode;
Dops_v0_generated.h715 enum NearestMode : int8_t { enum
725 inline const NearestMode (&EnumValuesNearestMode())[5] { in EnumValuesNearestMode()
726 static const NearestMode values[] = { in EnumValuesNearestMode()
748 inline const char *EnumNameNearestMode(NearestMode e) { in EnumNameNearestMode()
4129 mindspore::schema::v0::NearestMode nearestMode() const { in nearestMode()
4130 return static_cast<mindspore::schema::v0::NearestMode>(GetField<int8_t>(VT_NEARESTMODE, 0)); in nearestMode()
4183 void add_nearestMode(mindspore::schema::v0::NearestMode nearestMode) { in add_nearestMode()
4209 mindspore::schema::v0::NearestMode nearestMode = mindspore::schema::v0::NearestMode_NORMAL) {
Dops_generated.h8645 mindspore::schema::NearestMode nearest_mode() const {
8646 return static_cast<mindspore::schema::NearestMode>(GetField<int8_t>(VT_NEAREST_MODE, 0));
8695 void add_nearest_mode(mindspore::schema::NearestMode nearest_mode) {
8720 mindspore::schema::NearestMode nearest_mode = mindspore::schema::NearestMode_NORMAL) {
/third_party/mindspore/mindspore/lite/mindir/include/
Dmindir_types.h119 enum NearestMode : int8_t { enum
Dmindir.h305 NearestMode nearest_mode);
323 NearestMode MindIR_Resize_GetNearestMode(ConstPrimitivePtr primitive);
324 void MindIR_Resize_SetNearestMode(PrimitivePtr *primitive, NearestMode nearest_mode);
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_resize_parser.cc73 prim->set_nearest_mode(mindspore::NearestMode::NORMAL); in Parse()
/third_party/mindspore/mindspore/lite/schema/inner/
Dops_types_generated.h99 enum NearestMode : int8_t { enum
109 inline const NearestMode (&EnumValuesNearestMode())[5] { in EnumValuesNearestMode()
110 static const NearestMode values[] = { in EnumValuesNearestMode()
132 inline const char *EnumNameNearestMode(NearestMode e) { in EnumNameNearestMode()
Dops_v0_generated.h1333 enum NearestMode : int8_t { enum
1343 inline const NearestMode (&EnumValuesNearestMode())[5] { in EnumValuesNearestMode()
1344 static const NearestMode values[] = { in EnumValuesNearestMode()
1366 inline const char *EnumNameNearestMode(NearestMode e) { in EnumNameNearestMode()
5817 mindspore::schema::v0::NearestMode nearestMode = mindspore::schema::v0::NearestMode_NORMAL;
5899 mindspore::schema::v0::NearestMode nearestMode() const { in nearestMode()
5900 return static_cast<mindspore::schema::v0::NearestMode>(GetField<int8_t>(VT_NEARESTMODE, 0)); in nearestMode()
5902 bool mutate_nearestMode(mindspore::schema::v0::NearestMode _nearestMode) { in mutate_nearestMode()
5959 void add_nearestMode(mindspore::schema::v0::NearestMode nearestMode) { in add_nearestMode()
5985 mindspore::schema::v0::NearestMode nearestMode = mindspore::schema::v0::NearestMode_NORMAL) {
Dops_generated.h13392 mindspore::schema::NearestMode nearest_mode = mindspore::schema::NearestMode_NORMAL;
13467 mindspore::schema::NearestMode nearest_mode() const {
13468 return static_cast<mindspore::schema::NearestMode>(GetField<int8_t>(VT_NEAREST_MODE, 0));
13470 bool mutate_nearest_mode(mindspore::schema::NearestMode _nearest_mode) {
13523 void add_nearest_mode(mindspore::schema::NearestMode nearest_mode) {
13548 mindspore::schema::NearestMode nearest_mode = mindspore::schema::NearestMode_NORMAL) {
/third_party/mindspore/mindspore/lite/mindir/src/
Dmindir.cc3040 NearestMode nearest_mode) { in MindIR_Resize_CreatePrimitive()
3045 exclude_outside, extrapolation_value, static_cast<schema::NearestMode>(nearest_mode)); in MindIR_Resize_CreatePrimitive()
3079 static_cast<schema::NearestMode>(value->nearest_mode())); in MindIR_Resize_SetMethod()
3114 static_cast<schema::NearestMode>(value->nearest_mode())); in MindIR_Resize_SetNewHeight()
3149 static_cast<schema::NearestMode>(value->nearest_mode())); in MindIR_Resize_SetNewWidth()
3184 static_cast<schema::NearestMode>(value->nearest_mode())); in MindIR_Resize_SetPreserveAspectRatio()
3222 static_cast<schema::NearestMode>(value->nearest_mode())); in MindIR_Resize_SetCoordinateTransformMode()
3257 static_cast<schema::NearestMode>(value->nearest_mode())); in MindIR_Resize_SetCubicCoeff()
3291 …exclude_outside, value->extrapolation_value(), static_cast<schema::NearestMode>(value->nearest_mod… in MindIR_Resize_SetExcludeOutside()
3325 …value->exclude_outside(), extrapolation_value, static_cast<schema::NearestMode>(value->nearest_mod… in MindIR_Resize_SetExtrapolationValue()
[all …]
Dmindir_nnrt_lite_graph_to_model.cc944 resize.nearestMode = static_cast<HDI::Nnrt::V1_0::NearestMode>(value->nearest_mode()); in ConvertResize()
/third_party/mindspore/mindspore/core/utils/
Dcheck_convert_utils.h124 enum class NearestMode : int64_t { NORMAL = 0, ROUND_HALF_DOWN = 1, ROUND_HALF_UP = 2, FLOOR = 3, C… enum
/third_party/mindspore/mindspore/lite/src/ops/
Dops_def.cc839 OP_ATTR_ENUM(nearest_mode, NearestMode)