xlnstorch.csrc.add_forward#
- xlnstorch.csrc.add_forward(x, y, base)#
Perform LNS addition on two tensors internal representations.
- Parameters:
x (torch.Tensor) – The first tensor in LNS format (torch.int64).
y (torch.Tensor) – The second tensor in LNS format (torch.int64).
base (torch.Tensor) – The base for the LNS representation.
- Return type: