Skip to content

tensorshare.Backend

Constants for tensorshare.serialization.

Backend

Bases: str, Enum

Supported backends.

Source code in src/tensorshare/serialization/constants.py
class Backend(str, Enum):
    """Supported backends."""

    FLAX = "flax"
    NUMPY = "numpy"
    PADDLEPADDLE = "paddlepaddle"
    # TENSORFLOW = "tensorflow"
    TORCH = "torch"

TensorType

Bases: str, Enum

Tensor types.

Source code in src/tensorshare/serialization/constants.py
class TensorType(str, Enum):
    """Tensor types."""

    FLAX = "jaxlib.xla_extension.ArrayImpl"
    NUMPY = "numpy.ndarray"
    PADDLEPADDLE = "paddle.Tensor"
    # TENSORFLOW = "tensorflow.Tensor"
    TORCH = "torch.Tensor"

Last update: 2023-08-20
Created: 2023-08-20