14.6. Encrypt

Generic encryptor as computational graph node.

class fhez.nn.operations.encrypt.Encrypt(provider=None, **kwargs)

Generic encryptor of inputs.

backward(gradient)

Pass gradients back unmodified.

property cost

Return no depth/ cost/ 0 of encryption.

forward(x)

Encrypt cyphertext using configured FHE provider.

property parameters

Get parameters to for the encryption provider.

property provider

Get encryption provider to be parameterised for encryption.

update()

Do nothing as encryption has no deep-learning parameterisation.

updates()

Do nothing as encryption has no deep-learning parameterisation.