Skip to content

Commit

Permalink
chore(frontend): add shortcut property to get server in fhe modules
Browse files Browse the repository at this point in the history
  • Loading branch information
aPere3 committed Mar 26, 2024
1 parent 4068046 commit 8159b99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontends/concrete-python/concrete/fhe/compilation/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,13 @@ def statistics(self) -> Dict:
}
return statistics

@property
def server(self) -> Server:
"""
Get the server used by the runtime.
"""
return self.runtime.server

def functions(self) -> Dict[str, FheFunction]:
"""
Return a dictionnary containing all the functions of the module.
Expand Down

0 comments on commit 8159b99

Please sign in to comment.