xlnstorch.csrc.float_to_lns_forward

xlnstorch.csrc.float_to_lns_forward#

xlnstorch.csrc.float_to_lns_forward(x, base)#

Convert a tensor from floating-point representation to LNS representation.

Parameters:
  • x (torch.Tensor) – The input tensor in floating-point format (float64).

  • base (torch.Tensor) – The base for the LNS representation.

Returns:

The output tensor in LNS format (torch.int64).

Return type:

torch.Tensor