We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
infinicore.Tensor.copy_
infinicore.Tensor.as_strided
1 parent 93e7d88 commit 511aeb8Copy full SHA for 511aeb8
1 file changed
python/infinicore/tensor.py
@@ -57,15 +57,15 @@ def is_is_pinned(self):
57
return self._underlying.is_is_pinned()
58
59
def copy_(self, src):
60
- return Tensor(self._underlying.copy_(src._underlying))
+ self._underlying.copy_(src._underlying)
61
62
def to(self, *args, **kwargs):
63
return Tensor(
64
self._underlying.to(*tuple(arg._underlying for arg in args), **kwargs)
65
)
66
67
def as_strided(self, size, stride):
68
- Tensor(self._underlying.as_strided(size, stride))
+ return Tensor(self._underlying.as_strided(size, stride))
69
70
def contiguous(self):
71
return Tensor(self._underlying.contiguous())
0 commit comments