/third_party/mindspore/mindspore/core/ops/grad/ |
D | strided_slice_grad.cc | 26 …SliceGrad::Init(int64_t begin_mask, int64_t end_mask, int64_t ellipsis_mask, int64_t new_axis_mask, in Init() argument 31 this->set_new_axis_mask(new_axis_mask); in Init() 68 void StridedSliceGrad::set_new_axis_mask(int64_t new_axis_mask) { in set_new_axis_mask() argument 69 …(void)CheckAndConvertUtils::CheckInteger(kNewAxisMask, new_axis_mask, kGreaterEqual, 0, this->name… in set_new_axis_mask() 70 (void)this->AddAttr(kNewAxisMask, MakeValue(new_axis_mask)); in set_new_axis_mask()
|
D | strided_slice_grad.h | 36 …int64_t begin_mask = 0, int64_t end_mask = 0, int64_t ellipsis_mask = 0, int64_t new_axis_mask = 0, 41 void set_new_axis_mask(int64_t new_axis_mask);
|
/third_party/mindspore/mindspore/core/ops/ |
D | strided_slice.h | 42 const int64_t new_axis_mask = 0, const int64_t shrink_axis_mask = 0); 50 void set_new_axis_mask(const int64_t new_axis_mask);
|
D | strided_slice.cc | 261 void StridedSlice::set_new_axis_mask(const int64_t new_axis_mask) { in set_new_axis_mask() argument 262 …(void)CheckAndConvertUtils::CheckInteger(kNewAxisMask, new_axis_mask, kGreaterEqual, 0, this->name… in set_new_axis_mask() 263 (void)this->AddAttr(kNewAxisMask, MakeValue(new_axis_mask)); in set_new_axis_mask() 278 const int64_t new_axis_mask, const int64_t shrink_axis_mask) { in Init() argument 282 this->set_new_axis_mask(new_axis_mask); in Init()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/ |
D | strided_slice_gpu_common.h | 99 auto new_axis_mask = Dec2Bin(new_axis_mask_int); in ParseMasks() local 100 for (size_t l = 0; l < new_axis_mask.size(); l++) { in ParseMasks() 101 if (new_axis_mask[l] && l < MAX_DIMS) { in ParseMasks()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/ |
D | const_to_attr_strided_slice_grad.cc | 100 auto new_axis_mask = AnfAlgo::GetNodeAttr<int64_t>(strided_slice_grad, kAttrNewAxisMask); in CheckAttrs() local 102 if (new_axis_mask != 0 || shrink_axis_mask != 0) { in CheckAttrs()
|
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/ |
D | norm_fusion.cc | 290 auto new_axis_mask = static_cast<size_t>(primitive.value.AsStridedSlice()->new_axis_mask); in StridedSliceShapeSizeInfer() local 292 while (new_axis_mask != 0) { in StridedSliceShapeSizeInfer() 293 new_axis_mask = (new_axis_mask - 1) & new_axis_mask; in StridedSliceShapeSizeInfer()
|
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/ |
D | selection_ops_declare.cc | 140 {"new_axis_mask", ATTR_DESC(new_axis_mask, AnyTraits<int64_t>())}, 150 {"new_axis_mask", ATTR_DESC(new_axis_mask, AnyTraits<int64_t>())}, 161 {"new_axis_mask", ATTR_DESC(new_axis_mask, AnyTraits<int64_t>())},
|
/third_party/mindspore/mindspore/lite/src/ops/populate/ |
D | strided_slice_populate.cc | 41 param->newAxisMask_ = value->new_axis_mask(); in PopulateStridedSliceParameter()
|
D | strided_slice_grad_populate.cc | 42 param->newAxisMask_ = value->new_axis_mask(); in PopulateStridedSliceGradParameter()
|
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/ |
D | tflite_strided_slice_parser.cc | 42 prim->set_new_axis_mask(tflite_attr->new_axis_mask); in Parse()
|
D | schema.fbs | 758 new_axis_mask: int;
|
/third_party/mindspore/mindspore/lite/src/delegate/npu/op/ |
D | strided_slice_npu.cc | 61 new_axis_mask_ = strided_slice_prim->new_axis_mask(); in Init()
|
/third_party/mindspore/mindspore/lite/mindir/include/ |
D | mindir.h | 384 int64_t new_axis_mask, int64_t shrink_axis_mask); 392 void MindIR_StridedSlice_SetNewAxisMask(PrimitivePtr *primitive, int64_t new_axis_mask);
|
/third_party/mindspore/mindspore/lite/schema/ |
D | ops.fbs | 972 new_axis_mask: long; 1075 new_axis_mask: long;
|
D | ops_generated.h | 10100 int64_t new_axis_mask() const { 10130 void add_new_axis_mask(int64_t new_axis_mask) { 10131 fbb_.AddElement<int64_t>(StridedSlice::VT_NEW_AXIS_MASK, new_axis_mask, 0); 10152 int64_t new_axis_mask = 0, 10156 builder_.add_new_axis_mask(new_axis_mask); 11152 int64_t new_axis_mask() const { 11182 void add_new_axis_mask(int64_t new_axis_mask) { 11183 fbb_.AddElement<int64_t>(StridedSliceGrad::VT_NEW_AXIS_MASK, new_axis_mask, 0); 11204 int64_t new_axis_mask = 0, 11208 builder_.add_new_axis_mask(new_axis_mask);
|
/third_party/mindspore/mindspore/lite/src/ops/ |
D | ops_def.cc | 972 OP_ATTR(new_axis_mask, long) 1075 OP_ATTR(new_axis_mask, long)
|
/third_party/mindspore/tests/ut/python/ops/ |
D | test_math_ops.py | 467 'block': (lambda x: P.StridedSlice(new_axis_mask="1.1"), {'exception': TypeError}),
|
D | test_ops.py | 928 shrink_axis_mask=2, new_axis_mask=8) 930 shrink_axis_mask=6, new_axis_mask=10) 932 shrink_axis_mask=5, new_axis_mask=13) 934 shrink_axis_mask=12, new_axis_mask=15) 961 new_axis_mask=18)
|
/third_party/mindspore/mindspore/lite/mindir/src/ |
D | mindir.cc | 3870 int64_t new_axis_mask, int64_t shrink_axis_mask) { in MindIR_StridedSlice_CreatePrimitive() argument 3873 …schema::CreateStridedSlice(fbb, begin_mask, end_mask, ellipsis_mask, new_axis_mask, shrink_axis_ma… in MindIR_StridedSlice_CreatePrimitive() 3902 … value->new_axis_mask(), value->shrink_axis_mask()); in MindIR_StridedSlice_SetBeginMask() 3933 … value->new_axis_mask(), value->shrink_axis_mask()); in MindIR_StridedSlice_SetEndMask() 3964 … value->new_axis_mask(), value->shrink_axis_mask()); in MindIR_StridedSlice_SetEllipsisMask() 3979 return value->new_axis_mask(); in MindIR_StridedSlice_GetNewAxisMask() 3988 void MindIR_StridedSlice_SetNewAxisMask(PrimitivePtr *primitive, int64_t new_axis_mask) { in MindIR_StridedSlice_SetNewAxisMask() argument 3995 new_axis_mask, value->shrink_axis_mask()); in MindIR_StridedSlice_SetNewAxisMask() 4026 value->new_axis_mask(), shrink_axis_mask); in MindIR_StridedSlice_SetShrinkAxisMask()
|
/third_party/mindspore/mindspore/lite/src/train/ |
D | train_populate_parameter.cc | 487 strided_slice_param->newAxisMask_ = value->new_axis_mask(); in PopulateStridedSliceGradParameter()
|
/third_party/mindspore/mindspore/ops/operations/ |
D | array_ops.py | 3210 new_axis_mask=0, argument 3219 validator.check_non_negative_int(new_axis_mask, 'new_axis_mask', self.name) 3282 new_axis_pos = bin(self.new_axis_mask)[-1:1:-1]
|
D | _grad_ops.py | 1887 new_axis_mask=0, argument 1893 validator.check_value_type('new_axis_mask', new_axis_mask, [int], self.name)
|
/third_party/mindspore/mindspore/ops/_grad/ |
D | grad_array_ops.py | 655 self.new_axis_mask,
|
/third_party/mindspore/third_party/proto/tensorflow/lite/ |
D | schema.fbs | 758 new_axis_mask: int;
|