from concrete import fhe
@fhe.module()
class Counter:
@fhe.function({"x": "encrypted"})
def inc(x):
return (x + 1) % 20
@fhe.function({"x": "encrypted"})
def dec(x):
return (x - 1) % 20
Can these be used with compile torch model to fhe( combining a pytorch MLP with a custom function)? Can you give an example?