Tensor Utils#
The xlnstorch.tensor_utils module provides utility functions for working
with LNSTensor objects and helpers for useful quantities.
|
Toggle the use of C++ implementations for tensor utility functions. |
Get the logarithmic base for a given precision. |
|
|
Get the precision for a given logarithmic base, if it matches a precomputed base. |
|
Set global overflow limits for the handle_overflow function. |
|
Handle overflow for a variable number of LNSTensors based on global overflow limits. |
|
Aligns the bases of a sequence of LNSTensors to a common base. |
|
Converts a variable number of operands to LNSTensor objects, aligning all operands to the base of the first operand that is an LNSTensor. |