mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
1.5 KiB
1.5 KiB
module concrete.fhe.extensions.identity
Declaration of identity extension.
function identity
identity(x: Union[Tracer, Any]) → Union[Tracer, Any]
Apply identity function to x.
Bit-width of the input and the output can be different.
Args: x (Union[Tracer, Any]): input to identity
Returns: Union[Tracer, Any]: identity tracer if called with a tracer deepcopy of the input otherwise
function refresh
refresh(x: Union[Tracer, Any]) → Union[Tracer, Any]
Refresh x.
Refresh encryption noise, the output noise is usually smaller compared to the input noise. Bit-width of the input and the output can be different.
Args: x (Union[Tracer, Any]): input to identity
Returns: Union[Tracer, Any]: identity tracer if called with a tracer deepcopy of the input otherwise