Home
last modified time | relevance | path

Searched refs:shp (Results 1 – 25 of 93) sorted by relevance

1234

/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/
Dlamb_next_mv_rule_test.cc58 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 …]
Dadam_apply_one_fusion_test.cc51 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 …]
Dadam_apply_one_with_decay_rule_test.cc36 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 …]
Dlamb_next_mv_with_decay_rule_test.cc59 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 …]
Dlamb_next_mv_with_decay_v1_rule_test.cc33 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()
Dsoftmax_grad_ext_fusion_test.cc35 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()
Dmul_addn_fusion_test.cc33 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()
Dclip_by_value_fusion_test.cc35 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()
Dreshape_transpose_fusion_test.cc42 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()
Dlamb_next_right_rule_test.cc45 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()
Dsquare_sum_fusion_test.cc35 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()
Dtranspose_reshape_fusion_test.cc42 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()
Dmul_add_fusion_test.cc33 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()
Dlayer_norm_beta_gamma_backprop_fusion_test.cc66 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/
Dsu.c49 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/
Dconcat_fission_test.cc38 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()
Daddn_fission_test.cc38 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()
Dpack_fission_test.cc38 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()
Dtopk_split_test.cc71 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/
Dother_util.py46 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/
Dabstract_value.cc517 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/
Dtest_lstm.py86 inputs = [convert(shp) for shp in shapes]
99 inputs = [convert(shp) for shp in shapes]
/third_party/mindspore/tests/mindspore_test_framework/apps/
Dtest_bert_parts.py178 {'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/
Dunsorted_segment_sum.cc41 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/
Dgrad_implementations.py185 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)

1234