syft.generic.frameworks.hook.trace¶
Module Contents¶
-
class
syft.generic.frameworks.hook.trace.Trace¶ Manage logging operations on the fly as they run
-
active¶ if True, recording of operation is active
-
out_of_operation¶ it True, is ready to record the next operation, means that it’s not inside the execution of an already recorded operation
-
logs¶ the list of operations recorded
-
clear(self)¶
-
enabled(self)¶
-
-
syft.generic.frameworks.hook.trace.tracer(func_name=None, method_name=None)¶ This is a decorator which allows to record operations and their results when a function or a method is hooked
This decorator is applied on overloaded_native_method and overloaded_func in the generic hook