mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
tensorflow: Add Tensor.__array__ method. (#14342)
This commit is contained in:
@@ -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