adpeps.utils.empty_tensor¶
Contains utility class that represents a ‘zero’ (empty) tensor object
-
class
EmptyT
[source]¶ Empty tensor utility class, which can be used to represent a ‘zero’ tensor.
The operations involving this type of tensor will return the expected results, such as (Tensor * EmptyT -> EmptyT), removing the need for checking if a tensor is empty in the part of the code where the operation is called.