Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SENTENCE_LENGTH_LIMIT = 5
inferer = Inferer(model)
homomorphic_inferer = hnp.compile_fhe(
inferer.infer,
{
"x": hnp.encrypted_ndarray(bounds=(-1, 1), shape=(SENTENCE_LENGTH_LIMIT, 300))
},
config=hnp.config.CompilationConfig(
parameter_optimizer="handselected",
apply_topological_optimizations=True,
probabilistic_bounds=6,
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment