You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement an interface for users to register pre/post transformation/apply observers for BackendPart and Transformer.
@classmethoddefregiseter_prior_observer(cls, callback):
cls.prior_observer.append(callback)
@classmethoddefregister_post_observer(cls, callback):
# similar codedefapply(self, ugraph):
forcallbackintype(self).prior_observer:
callback(ugraph)
# do work with ugraphforcallbackintype(self).prior_observer:
callback(ugraph)
Unify the interface for users to inspect the graph, such as inject pdb break point in the callback.
Note that these observers should not introduce side-effect to the graph.
The text was updated successfully, but these errors were encountered:
Implement an interface for users to register pre/post transformation/apply observers for
BackendPart
andTransformer
.Unify the interface for users to inspect the graph, such as inject
pdb
break point in the callback.Note that these observers should not introduce side-effect to the graph.
The text was updated successfully, but these errors were encountered: