deepmd._vendors.ndtensorflow._array#
Classes#
Enum where members are also (and must be) ints | |
User-facing TensorFlow-backed array object. |
Module Contents#
- class deepmd._vendors.ndtensorflow._array.DLDeviceType[source]#
Bases:
enum.IntEnumEnum where members are also (and must be) ints
- class deepmd._vendors.ndtensorflow._array.Array(tensor: Any | None = None, /)[source]#
Bases:
tf.experimental.ExtensionTypeUser-facing TensorFlow-backed array object.
The object owns the Array API surface. TensorFlow tensors remain plain TensorFlow tensors; no TensorFlow class is patched.
- __dlpack__(*, stream: int | Any | None = None, max_version: tuple[int, int] | None = None, dl_device: tuple[int, int] | None = None, copy: bool | None = None) Any[source]#
- __dlpack_device__() tuple[DLDeviceType, int][source]#
- __iter__() collections.abc.Iterator[Array][source]#