Cytnx icon indicating copy to clipboard operation
Cytnx copied to clipboard

permute_ and reshape_ return none

Open hunghaoti opened this issue 2 years ago • 1 comments

Function 'permute_' and 'reshape_' return None. For example:

A = cytnx.ones([2,3])
B = A.permute_(1,0)
print(B) #None
A = cytnx.UniTensor.ones([2,3])
B = A.permute_([1,0])
print(B) #None

hunghaoti avatar Nov 23 '23 03:11 hunghaoti

I think the in-place version returns None is proper?

pcchen avatar Sep 04 '24 04:09 pcchen

The behaviour was changed after #478.

IvanaGyro avatar Nov 10 '24 17:11 IvanaGyro