mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 02:31:09 +08:00
tensorflow: Add Tensor.__array__ method. (#14342)
This commit is contained in:
1 parent
5bb4ec86c6
commit
ba2e6b454a
1 file changed
+1
@@ -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: ...
|
||||
|
||||
Reference in new issue
Block a user