would generate an exception that the each batch of C tensor does not contain any block. However, each batch should actually be a zero-dimension-tensor with only one element, i.e. scalar.
The bug is fixed by creating a zero-dimension Tensor object in BlockedTensor.blocks_.
This PR fixed a bug when all the indices of result blocked tensor are batched.
Description
In rare case we want to batch over all indices in result tensor, which was not tested. In the previous implementation, contractions like
would generate an exception that the each batch of
C
tensor does not contain any block. However, each batch should actually be a zero-dimension-tensor with only one element, i.e. scalar. The bug is fixed by creating a zero-dimensionTensor
object inBlockedTensor.blocks_
.Status