Home
last modified time | relevance | path

Searched refs:tuple_len (Results 1 – 16 of 16) sorted by relevance

/third_party/mindspore/mindspore/nn/grad/
Dcell_grad.py83 self.tuple_len = Primitive("tuple_len")
93 for i in range(self.tuple_len(output)):
98 if self.tuple_len(jvp_input) == 1:
143 self.tuple_len = Primitive("tuple_len")
149 if self.tuple_len(front_input) == 1:
/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_parse_method.py451 def tuple_len(x): function
453 tuple_len(a)
/third_party/mindspore/mindspore/core/abstract/
Dprim_arrays.cc102 size_t tuple_len = arg->elements().size(); in InferImplStack() local
114 for (size_t i = 1; i < tuple_len; ++i) { in InferImplStack()
121 primitive->set_attr("N", MakeValue(SizeToLong(tuple_len))); in InferImplStack()
129 (void)ret_shape.insert(ret_shape.begin() + axis_value, SizeToLong(tuple_len)); in InferImplStack()
936 size_t tuple_len = 0; in InferImplConcat() local
941 tuple_len = arg->elements().size(); in InferImplConcat()
944 tuple_len = args_spec_list.size(); in InferImplConcat()
956 primitive->set_attr("inputNums", MakeValue(SizeToLong(tuple_len))); in InferImplConcat()
967 for (size_t i = 1; i < tuple_len; ++i) { in InferImplConcat()
/third_party/mindspore/tests/st/auto_monad/
Dtest_auto_monad_momentum_loss.py47 length = F.tuple_len(shape)
/third_party/mindspore/mindspore/numpy/
Dutils.py99 if axis is None or F.tuple_len(axis) == 0:
Darray_ops.py199 ndim = F.tuple_len(shape)
989 if F.tuple_len(F.shape(x)) > 1:
Dmath_ops.py1063 if isinstance(axis, int) or (isinstance(axis, tuple) and F.tuple_len(axis) == 1):
2405 ndim_out = F.tuple_len(shape)
2416 ndim_orig = F.tuple_len(shape)
2417 ndim_out = ndim_orig - F.tuple_len(axes)
/third_party/mindspore/tests/ut/python/parallel/
Dtest_auto_parallel_flag.py80 length = F.tuple_len(shape)
/third_party/mindspore/tests/ut/python/optimizer/
Dtest_debug_location.py105 length = F.tuple_len(shape)
Dtest_optimizer_with_loss_scale.py83 length = F.tuple_len(shape)
/third_party/mindspore/tests/st/pynative/loss_scale/
Dtest_loss_scale.py133 length = F.tuple_len(shape)
/third_party/mindspore/mindspore/ops/
Dfunctional.py181 tuple_len = Primitive("tuple_len") variable
/third_party/mindspore/tests/ut/python/ir/
Dtest_row_tensor.py61 length = F.tuple_len(shape)
/third_party/mindspore/mindspore/ops/_grad/
Dgrad_comm_ops.py515 input_nums = F.tuple_len(dout)
/third_party/mindspore/mindspore/nn/optim/
Doptimizer.py645 for i in range(F.tuple_len(next_params)):
/third_party/mindspore/mindspore/nn/loss/
Dloss.py77 length = F.tuple_len(shape)