Home
last modified time | relevance | path

Searched refs:x_min_shape (Results 1 – 10 of 10) sorted by relevance

/third_party/mindspore/mindspore/core/ops/
Dreshape.cc62 ShapeVector x_min_shape = x->shape()->min_shape(); in ReshapeInfer() local
66 if (x_min_shape.empty()) { in ReshapeInfer()
67 x_min_shape = x_shape; in ReshapeInfer()
72 …std::accumulate(x_min_shape.begin(), x_min_shape.end(), static_cast<int64_t>(1), std::multiplies<i… in ReshapeInfer()
Dop_utils.cc65 auto x_min_shape = x_shape_map[kMinShape]; in BroadCastInferShape() local
70 return std::make_shared<abstract::Shape>(x_shape, x_min_shape, x_max_shape); in BroadCastInferShape()
73 auto min_broadcast_shape = CalBroadCastShape(x_min_shape, y_min_shape, op_name); in BroadCastInferShape()
Dtranspose.cc32 …auto x_min_shape = CheckAndConvertUtils::ConvertShapePtrToShapeMap(input_args[0]->BuildShape())[kM… in InferShape() local
71 if (!x_min_shape.empty() && !x_max_shape.empty()) { in InferShape()
75 min_shape.push_back(x_min_shape[LongToSize(i)]); in InferShape()
Dconv2d.cc159 auto x_min_shape = x_shape_map[kMinShape]; in Conv2dInferShape() local
163 CheckAndConvertUtils::CheckMinMaxShape(x_shape, &x_min_shape, &x_max_shape); in Conv2dInferShape()
167 CheckShapeAllPositive(prim_name + " x_min_shape", x_min_shape); in Conv2dInferShape()
216 …Conv2DPadFunction(&output_hw_min, &pad_list_min, x_min_shape[h_axis], x_min_shape[w_axis], kernel_… in Conv2dInferShape()
228 output_shape_min = {x_min_shape[n_axis], output_hw_min[0], output_hw_min[1], out_channel}; in Conv2dInferShape()
232 output_shape_min = {x_min_shape[n_axis], out_channel, output_hw_min[0], output_hw_min[1]}; in Conv2dInferShape()
Dmat_mul.cc58 ShapeVector x_min_shape = x_shape_map[kMinShape]; in MatMulInferShape() local
62 CheckAndConvertUtils::CheckMinMaxShape(x_shp, &x_min_shape, &x_max_shape); in MatMulInferShape()
88 make_shape(ret_min_shape, x_min_shape, y_min_shape); in MatMulInferShape()
Dbatch_matmul.cc70 ShapeVector x_min_shape = x_shape_map[kMinShape]; in BatchMatmulInferShape() local
74 CheckAndConvertUtils::CheckMinMaxShape(x_shp, &x_min_shape, &x_max_shape); in BatchMatmulInferShape()
114 make_shape(ret_min_shape, x_min_shape, y_min_shape); in BatchMatmulInferShape()
/third_party/mindspore/mindspore/core/abstract/
Dprim_nn.cc137 ShapeVector x_min_shape = input_x->shape()->min_shape(); in InferImplBatchNorm() local
139 CheckMinMaxShape(x_shape, &x_min_shape, &x_max_shape); in InferImplBatchNorm()
177 ShapePtr output_shape_ptr = std::make_shared<Shape>(x_shape, x_min_shape, x_max_shape); in InferImplBatchNorm()
252 ShapeVector x_min_shape = input_x->shape()->min_shape(); in InferImplConv2D() local
254 CheckMinMaxShape(x_shape, &x_min_shape, &x_max_shape); in InferImplConv2D()
256 CheckShapeAllPositive(op_name + " x_min_shape", x_min_shape); in InferImplConv2D()
314 …Conv2DPadFunction(&output_hw_min, &pad_list_min, x_min_shape[h_axis], x_min_shape[w_axis], kernel_… in InferImplConv2D()
326 output_shape_min = {x_min_shape[n_axis], output_hw_min[0], output_hw_min[1], out_channel}; in InferImplConv2D()
330 output_shape_min = {x_min_shape[n_axis], out_channel, output_hw_min[0], output_hw_min[1]}; in InferImplConv2D()
357 ShapeVector x_min_shape = x->shape()->min_shape(); in InferImplBiasAdd() local
[all …]
Dprim_maths.cc287 ShapeVector x_min_shape = x->shape()->min_shape(); in InferImplMatMul() local
291 CheckMinMaxShape(x_shp, &x_min_shape, &x_max_shape); in InferImplMatMul()
315 make_shape(ret_min_shape, x_min_shape, y_min_shape); in InferImplMatMul()
354 ShapeVector x_min_shape = x->shape()->min_shape(); in InferImplBatchMatMul() local
358 CheckMinMaxShape(x_shp, &x_min_shape, &x_max_shape); in InferImplBatchMatMul()
395 make_shape(ret_min_shape, x_min_shape, y_min_shape); in InferImplBatchMatMul()
Dprim_arrays.cc759 ShapeVector x_min_shape = x->shape()->min_shape(); in InferImplReshape() local
763 if (x_min_shape.empty()) { in InferImplReshape()
764 x_min_shape = x_shape; in InferImplReshape()
783 for (int64_t value : x_min_shape) { in InferImplReshape()
1094 ShapeVector x_min_shape = x->shape()->min_shape(); in InferImplArgMaxWithValue() local
1096 CheckMinMaxShape(x_shape, &x_min_shape, &x_max_shape); in InferImplArgMaxWithValue()
1098 cal_shape(min_shape, x_min_shape); in InferImplArgMaxWithValue()
/third_party/mindspore/mindspore/ops/operations/
Darray_ops.py507 x_min_shape = x['min_shape']
509 x_min_shape = x['shape']
511 min_arr_prod = np.prod(x_min_shape)