/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | lamb_next_mv_rule_test.cc | 58 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 59 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 101 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 102 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 144 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 145 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 187 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 188 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 230 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 231 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() [all …]
|
D | adam_apply_one_fusion_test.cc | 51 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 52 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 89 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 90 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 127 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 128 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 165 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 166 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 203 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 204 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() [all …]
|
D | adam_apply_one_with_decay_rule_test.cc | 36 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 37 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 57 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 58 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 78 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 79 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 99 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 100 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 120 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 121 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() [all …]
|
D | lamb_next_mv_with_decay_rule_test.cc | 59 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 60 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 103 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 104 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 148 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 149 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 193 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 194 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 238 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 239 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() [all …]
|
D | lamb_next_mv_with_decay_v1_rule_test.cc | 33 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 34 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 53 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 54 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 73 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 74 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 93 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 94 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | softmax_grad_ext_fusion_test.cc | 35 std::vector<int64_t> shp{1, 1, 1, 1}; in TEST_F() local 36 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 56 std::vector<int64_t> shp{1, 1, 1, 1}; in TEST_F() local 57 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 77 std::vector<int64_t> shp{1, 1, 1, 1}; in TEST_F() local 78 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | mul_addn_fusion_test.cc | 33 std::vector<int64_t> shp{2, 2, 2, 2}; in TEST_F() local 34 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 50 std::vector<int64_t> shp{2, 2, 2, 2}; in TEST_F() local 51 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | clip_by_value_fusion_test.cc | 35 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 36 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 56 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 57 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | reshape_transpose_fusion_test.cc | 42 std::vector<int64_t> shp{2, 2, 16, 16}; in TEST_F() local 43 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 71 std::vector<int64_t> shp{2, 4, 8, 16}; in TEST_F() local 72 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | lamb_next_right_rule_test.cc | 45 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 46 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 77 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 78 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | square_sum_fusion_test.cc | 35 std::vector<int64_t> shp{1, 1, 1, 1}; in TEST_F() local 36 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 55 std::vector<int64_t> shp{1, 1, 1, 1}; in TEST_F() local 56 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | transpose_reshape_fusion_test.cc | 42 std::vector<int64_t> shp{2, 2, 16, 16}; in TEST_F() local 43 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 73 std::vector<int64_t> shp{2, 4, 8, 16}; in TEST_F() local 74 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | mul_add_fusion_test.cc | 33 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 34 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 57 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 58 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | layer_norm_beta_gamma_backprop_fusion_test.cc | 66 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 67 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 127 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 128 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 186 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 187 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 244 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 245 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 294 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 295 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
/third_party/toybox/toys/lsb/ |
D | su.c | 49 struct spwd *shp; local 61 shp = getspnam(name); 62 if (getuid() && shp) { 63 if (*shp->sp_pwdp != '$') goto deny; 65 passhash = crypt(toybuf, shp->sp_pwdp); 67 if (!passhash || strcmp(passhash, shp->sp_pwdp)) goto deny;
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/ |
D | concat_fission_test.cc | 38 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 39 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 63 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 64 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 88 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 89 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 113 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 114 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 138 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 139 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | addn_fission_test.cc | 38 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 39 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 63 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 64 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 88 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 89 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 113 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 114 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 138 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 139 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | pack_fission_test.cc | 38 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 39 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 62 std::vector<int64_t> shp{2, 32, 224, 224}; in TEST_F() local 63 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
D | topk_split_test.cc | 71 std::vector<int64_t> shp{4, 4}; in TEST_F() local 72 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F() 103 std::vector<int64_t> shp{4, 4}; in TEST_F() local 104 auto x_abstract = std::make_shared<abstract::AbstractTensor>(kFloat32, shp); in TEST_F()
|
/third_party/mindspore/tests/mindspore_test_framework/utils/ |
D | other_util.py | 46 def shape2tensor(shp, dtype=np.float32, scale=6): argument 47 if isinstance(shp, list): 48 if not shp: 50 return Tensor((np.random.rand(*shp) * scale).astype(dtype)) 51 return shp
|
/third_party/mindspore/mindspore/core/abstract/ |
D | abstract_value.cc | 517 auto shp = dyn_cast<Shape>(GetShapeTrack()); in shape() local 518 if (shp == nullptr) { in shape() 521 return shp; in shape() 625 ShapePtr shp = shape(); in Clone() local 626 clone->set_shape(shp->Clone()); in Clone() 635 auto shp = shape(); in Broaden() local 636 MS_EXCEPTION_IF_NULL(shp); in Broaden() 637 broaden->set_shape(shp->Clone()); in Broaden() 645 auto shp = shape()->Clone(); in BroadenWithShape() local 646 MS_EXCEPTION_IF_NULL(shp); in BroadenWithShape() [all …]
|
/third_party/mindspore/tests/ut/python/nn/ |
D | test_lstm.py | 86 inputs = [convert(shp) for shp in shapes] 99 inputs = [convert(shp) for shp in shapes]
|
/third_party/mindspore/tests/mindspore_test_framework/apps/ |
D | test_bert_parts.py | 178 {'init_param_with': lambda shp: np.ones(shp).astype(np.float32)}), 187 {'init_param_with': lambda shp: np.ones(shp).astype(np.float32)}), 196 {'init_param_with': lambda shp: np.ones(shp).astype(np.float32)}),
|
/third_party/mindspore/mindspore/core/ops/ |
D | unsorted_segment_sum.cc | 41 auto shp = x_shape; in UnsortedSegmentSumInfer() local 62 (void)shp.emplace_back(x_shape[i]); in UnsortedSegmentSumInfer() 65 return std::make_shared<abstract::AbstractTensor>(x_type, shp); in UnsortedSegmentSumInfer()
|
/third_party/mindspore/mindspore/ops/_grad/ |
D | grad_implementations.py | 185 def bprop_reshape(xs, shp, out, dout): argument 187 return F.reshape(dout, F.shape(xs)), C.zeros_like(shp) 191 def bprop_distribute(arr, shp, out, dout): argument 193 return F.array_reduce(F.scalar_add, dout, F.shape(arr)), C.zeros_like(shp) 209 def bprop_array_reduce(fn, x, shp, out, dout): argument 211 return F.distribute(dout, F.shape(x)), C.zeros_like(shp)
|