update xlib.avecl

This commit is contained in:
iperov 2021-10-06 14:50:53 +04:00
commit 65fb01ff39
6 changed files with 143 additions and 7 deletions

View file

@ -60,6 +60,7 @@ def Tensor_as_shape(self : Tensor, shape) -> Tensor:
return TensorRef(self, shape)
Tensor.as_shape = Tensor_as_shape
Tensor.cast = cast
def Tensor_copy(self : Tensor) -> Tensor:
return Tensor.from_value(self)
Tensor.copy = Tensor_copy