Python API
caldera.blocks
caldera.models
caldera.utils.
same_storage
Checks if two tensors share storage.
x (Tensor) – first tensor
Tensor
y (Tensor) – second tensor
empty_does_not_share_storage (bool) – if True (default), will return False if either tensor is empty (despite that they technically data_ptr are the same).
bool
if the tensor shares the same storage