DataType

class madspace.DataType(*args, **kwargs)

Bases: pybind11_object

Element data type of a compute-graph Value.

dt_int and dt_float are ordinary integer and floating-point tensors. batch_sizes marks a value that instead carries a list of batch sizes, used to split and recombine batches in multi-channel functions.

Members:

int

float

batch_sizes

Overloaded function.

  1. __init__(self: madspace._madspace_py.DataType, value: typing.SupportsInt) -> None

  2. __init__(self: madspace._madspace_py.DataType, name: str) -> None

batch_sizes = <DataType.batch_sizes: 2>
float = <DataType.float: 1>
int = <DataType.int: 0>
DataType.name -> str
property value