forked from mindspore-Ecosystem/mindspore
!46592 fix bug in call old version split function in Tensor
Merge pull request !46592 from ZhidanLiu/fixbug
This commit is contained in:
commit
d7a19bf0fe
|
@ -3104,7 +3104,7 @@ class Tensor(Tensor_):
|
|||
raise ValueError(f"For 'Tensor.repeat', the length of 'repeats' must be the same as the shape of the "
|
||||
f"original tensor in the 'axis' dimension, but got the length of 'repeats' "
|
||||
f"{len(repeats)}, the shape of the original tensor in the 'axis' dimension {size}.")
|
||||
subs = tensor_operator_registry.get('split')(axis, size)(input_x)
|
||||
subs = tensor_operator_registry.get('tensor_split')(input_x, size, axis)
|
||||
repeated_subs = []
|
||||
for sub, rep in zip(subs, repeats):
|
||||
if rep != 0:
|
||||
|
|
Loading…
Reference in New Issue