concepts.dsl.tensor_value.TensorizedPyObjValues#
- class TensorizedPyObjValues[source]#
Bases:
object
A value object with nested lists of Python objects. Note that this implies that we can not use list as the Python object type when shape is not specified.
Methods
clone
([deep_copy])Recursively clone the values.
expand
(target_size)fast_index
(arguments)fast_set_index
(arguments, value)item
()make_empty
(dtype, shape)numel
()permute
(indices)Permute the axes in the nested list of values.
unsqueeze
(dim)Attributes
- __new__(**kwargs)#
- classmethod make_empty(dtype, shape)[source]#
- Parameters:
dtype (PyObjValueType)
- property ndim#