2.6 KiB
module concrete.fhe.values.tensor
Declaration of ClearTensor and EncryptedTensor wrappers.
function clear_tensor_builder
clear_tensor_builder(
dtype: BaseDataType,
shape: Tuple[int, ]
) → ValueDescription
Build a clear tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: clear tensor value description with given dtype and shape
function clear_tensor_builder
clear_tensor_builder(
dtype: BaseDataType,
shape: Tuple[int, ]
) → ValueDescription
Build a clear tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: clear tensor value description with given dtype and shape
function encrypted_tensor_builder
encrypted_tensor_builder(
dtype: BaseDataType,
shape: Tuple[int, ]
) → ValueDescription
Build an encrypted tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: encrypted tensor value description with given dtype and shape
function encrypted_tensor_builder
encrypted_tensor_builder(
dtype: BaseDataType,
shape: Tuple[int, ]
) → ValueDescription
Build an encrypted tensor value.
Args: dtype (BaseDataType): dtype of the value
shape (Tuple[int, ...]): shape of the value
Returns: ValueDescription: encrypted tensor value description with given dtype and shape