ispamm/hTorch

Addition of quaternion tensor and real tensor fails

sscardapane opened this issue · 1 comments

Adding a quaternion-valued tensor to a real-valued tensor fails:

quaternion.QuaternionTensor(torch.rand(2, 4)) + torch.rand(2)

Currently, it fails with this error message:

image

Fixed scalar/quaternion addition to properly add the scalar to the real part of the quaternion only.