mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-20 02:08:07 -05:00
2.1 KiB
2.1 KiB
module concrete.fhe.tfhers.values
Declaration of TFHERSInteger which wraps values as being of tfhers types.
class TFHERSInteger
Wrap integer values (scalar or arrays) into typed values, using tfhers types.
method __init__
__init__(dtype: TFHERSIntegerType, value: Union[List, int, ndarray])
property dtype
Get the type of the wrapped value.
Returns: TFHERSIntegerType
property shape
Get the shape of the wrapped value.
Returns:
tuple: shape
property value
Get the wrapped value.
Returns: Union[int, np.ndarray]
method max
max()
Get the maximum value that can be represented by the current type.
Returns: int: maximum value that can be represented by the current type
method min
min()
Get the minimum value that can be represented by the current type.
Returns: int: minimum value that can be represented by the current type