Files
concrete/docs/dev/api/concrete.fhe.tfhers.values.md

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