tensorflow: Add Tensor.__array__ method. (#14342)

This commit is contained in:
EthanAtLL
2025-08-08 12:29:30 -04:00
committed by GitHub
parent 5bb4ec86c6
commit ba2e6b454a
+1
View File
@@ -99,6 +99,7 @@ class Tensor:
@property
def op(self) -> Operation: ...
def numpy(self) -> AnyArray: ...
def __array__(self, dtype: DTypeLike | None = None) -> AnyArray: ...
def __int__(self) -> int: ...
def __abs__(self, name: str | None = None) -> Tensor: ...
def __add__(self, other: TensorCompatible) -> Tensor: ...