DataType¶
- class madspace.DataType(*args, **kwargs)¶
Bases:
pybind11_objectElement data type of a compute-graph Value.
dt_intanddt_floatare ordinary integer and floating-point tensors.batch_sizesmarks 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.
__init__(self: madspace._madspace_py.DataType, value: typing.SupportsInt) -> None
__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¶