Overriding "underlying" providers #500
Unanswered
snesbittsea
asked this question in
Q&A
Replies: 1 comment
-
regularizer = providers.Factory(Regularizer)
loss = providers.Factory(Loss, regularizer=regularizer)
task = providers.Factory(ClassificationTask, loss=loss)
algorithm_factory = providers.Factory(Algorithm, task=task)
with container.regularizer.override(mock_regularizer):
algorithm = container.algorithm_factory() # Algorithm with mock regularizer I think this should work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation contains an example of a passing arguments to underlying providers as follows:
Beta Was this translation helpful? Give feedback.
All reactions