xlnstorch.csrc.change_base_forward#
- xlnstorch.csrc.change_base_forward(x, old_base, new_base)#
Change the base of an LNS tensor.
- Parameters:
x (torch.Tensor) – The input tensor in LNS format (torch.int64).
old_base (torch.Tensor) – The current base of the LNS tensor.
new_base (torch.Tensor) – The new base to convert the LNS tensor to.
- Return type: