Skip to content

Latest commit

 

History

History
120 lines (64 loc) · 2.81 KB

concrete.fhe.values.tensor.md

File metadata and controls

120 lines (64 loc) · 2.81 KB

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