Home
last modified time | relevance | path

Searched refs:arg_shape (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/core/abstract/
Dprim_nn.cc163 ShapeVector arg_shape = arg_spec->shape()->shape(); in InferImplBatchNorm() local
164 if (arg_shape.size() != 1) { in InferImplBatchNorm()
165 MS_LOG(EXCEPTION) << "Arg " << i << " rank should be 1, but got " << arg_shape.size(); in InferImplBatchNorm()
167 if ((x_shape[c_axis] != Shape::SHP_ANY) && (arg_shape[0] != x_shape[c_axis])) { in InferImplBatchNorm()
169 << "]=" << x_shape[c_axis] << ", but got " << arg_shape[0]; in InferImplBatchNorm()
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dprimitive_py.cc116 py::tuple arg_shape = py_args[i].attr("shape"); in check_bprop_out() local
124 if (!grad_shape.equal(arg_shape)) { in check_bprop_out()
127 << "th arg shape is: " << py::cast<py::str>(arg_shape) in check_bprop_out()