Declaration of ClearTensor
and EncryptedTensor
wrappers.
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
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
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
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