Home
last modified time | relevance | path

Searched refs:Reshape (Results 1 – 25 of 207) sorted by relevance

123456789

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Dflatten_gpu_kernel.cc24 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberT…
31 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberT…
40 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberT…
45 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTyp…
52 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTyp…
59 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt16).AddOutputAttr(kNumberTyp…
67 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeUInt32).AddOutputAttr(kNumberTy…
75 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeUInt8).AddOutputAttr(kNumberTyp…
82 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt8).AddOutputAttr(kNumberType…
89 MS_REG_GPU_KERNEL_ONE(Reshape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberType…
/third_party/mindspore/mindspore/core/ops/
Dreshape.h32 class MS_CORE_API Reshape : public PrimitiveC {
35 Reshape() : PrimitiveC(kNameReshape) { InitIOName({"tensor", "shape"}, {"output"}); } in Reshape() function
37 ~Reshape() = default;
38 MS_DECLARE_PARENT(Reshape, PrimitiveC);
45 using PrimReshapePtr = std::shared_ptr<Reshape>;
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dreshape_cpu_kernel.h43 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt8).AddOutputAttr(kNumberTypeInt8…
44 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt16).AddOutputAttr(kNumberTypeInt…
46 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt…
48 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTypeInt…
50 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeBool…
51 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeF…
53 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeUInt8).AddOutputAttr(kNumberTypeUIn…
55 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeUInt16).AddOutputAttr(kNumberTypeUI…
57 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeUInt32).AddOutputAttr(kNumberTypeUI…
59 MS_REG_CPU_KERNEL(Reshape, KernelAttr().AddInputAttr(kNumberTypeUInt64).AddOutputAttr(kNumberTypeUI…
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/op_declare/
Darray_ops_declare.cc55 INPUT_MAP(Reshape) = {{1, INPUT_DESC(x)}, {2, INPUT_DESC(shape)}};
56 ATTR_MAP(Reshape) = EMPTY_ATTR_MAP;
57 OUTPUT_MAP(Reshape) = {{0, OUTPUT_DESC(y)}};
58 REG_ADPT_DESC(Reshape, kNameReshape, ADPT_DESC(Reshape))
59 REG_ADPT_DESC(FlattenGrad, kNameFlattenGrad, ADPT_DESC(Reshape))
Darray_ops_declare.h29 DECLARE_OP_ADAPTER(Reshape)
30 DECLARE_OP_USE_OUTPUT(Reshape)
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dtranspose_reshape_fusion_test.py19 Reshape = P.Reshape() variable
41 reshape = Reshape(transpose, (2, 2, 16, 16))
Dreshape_transpose_fusion_test.py19 Reshape = P.Reshape() variable
40 reshape = Reshape(input0, (2, 2, 16, 16))
/third_party/mindspore/tests/ut/python/parallel/
Dtest_reshape_unexpand.py54 self.reshape = P.Reshape()
77 self.reshape = P.Reshape()
100 self.reshape = P.Reshape()
123 self.reshape = P.Reshape()
147 self.reshape = P.Reshape()
171 self.reshape = P.Reshape()
195 self.reshape = P.Reshape()
229 self.reshape = P.Reshape()
253 self.reshape = P.Reshape()
Dtest_reshape.py70 self.reshape = P.Reshape().shard(strategy1)
206 self.reshape = P.Reshape()
209 self.reshape2 = P.Reshape()
221 self.reshape = P.Reshape()
224 self.reshape2 = P.Reshape()
226 self.reshape3 = P.Reshape()
240 self.reshape = P.Reshape()
243 self.reshape2 = P.Reshape()
245 self.reshape3 = P.Reshape()
259 self.reshape = P.Reshape()
[all …]
Dtest_auto_parallel_reshape.py55 self.reshape = P.Reshape()
78 self.reshape = P.Reshape()
103 self.reshape = P.Reshape()
129 self.reshape = P.Reshape()
158 self.reshape = P.Reshape()
184 self.reshape = P.Reshape()
230 self.reshape = P.Reshape()
280 self.reshape = P.Reshape()
308 self.reshape = P.Reshape()
331 self.reshape1 = P.Reshape()
[all …]
Dtest_reshape_optimized.py27 self.reshape1 = P.Reshape()
28 self.reshape2 = P.Reshape()
Dtest_batchmm.py36 self.reshape = P.Reshape()
37 self.reshape2 = P.Reshape()
/third_party/mindspore/tests/ut/python/ops/
Dtest_array_ops_check.py53 self.op = P.Reshape()
127 'block': (P.Reshape(), {'exception': TypeError, 'error_keywords': ['Reshape']}),
132 'block': (P.Reshape(), {'exception': TypeError, 'error_keywords': ['Reshape']}),
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/
Dgatherv2_gpu_kernel.h56 Reshape(); in Launch()
95 Reshape(); in Init()
127 void Reshape() { in Reshape() function
Dgather_grad_gpu_kernel.h81 Reshape(); in Init()
100 void Reshape() { in Reshape() function
Dgather_gpu_kernel.h80 Reshape(); in Init()
99 void Reshape() { in Reshape() function
/third_party/mindspore/mindspore/parallel/nn/
Dloss.py104 exp_sum = P.Reshape()(exp_sum, (F.shape(exp_sum)[0], 1))
109 label = P.Reshape()(label, (-1,))
118 input_mask = P.Reshape()(input_mask, (-1,))
/third_party/mindspore/tests/st/networks/models/
Dlenet.py32 self.reshape = P.Reshape()
33 self.reshape1 = P.Reshape()
/third_party/mindspore/tests/ut/cpp/ops/
Dtest_ops_reshape.cc35 auto reshape = std::make_shared<Reshape>(); in TEST_F()
63 auto reshape = std::make_shared<Reshape>(); in TEST_F()
/third_party/mindspore/tests/st/fusion/
Dtest_conv_bn1_fusion.py68 self.reshape = P.Reshape()
96 self.reshape = P.Reshape()
122 self.reshape = P.Reshape()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/math/
Dcumprod_gpu_kernel.h83 Reshape(); in Init()
96 void Reshape() { in Reshape() function
Dcumsum_gpu_kernel.h83 Reshape(); in Init()
96 void Reshape() { in Reshape() function
/third_party/mindspore/mindspore/ops/composite/
Darray_ops.py100 reshape_op = P.Reshape()
182 reshape_op = P.Reshape()
/third_party/mindspore/tests/st/fl/albert/src/
Dmodel.py150 self.reshape = P.Reshape()
189 self.reshape = P.Reshape()
275 self.range_mat = P.Reshape()
326 self.reshape = P.Reshape()
397 self.reshape = P.Reshape()
541 self.reshape = P.Reshape()
597 self.reshape = P.Reshape()
666 self.reshape = P.Reshape()
706 self.reshape = P.Reshape()
/third_party/mindspore/tests/st/networks/models/bert/src/
Dbert_model.py135 self.reshape = P.Reshape()
193 self.reshape = P.Reshape()
280 self.range_mat = P.Reshape()
333 self.reshape = P.Reshape()
439 self.reshape = P.Reshape()
643 self.reshape = P.Reshape()
779 self.reshape = P.Reshape()
818 self.reshape = P.Reshape()

123456789