forked from pytorch/ignite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytorch#816 detach metric (pytorch#827)
* add detach() for metric * add test for detach() * add is_attached() * update tests * Update metric.py * Update test_metric.py * Update metric.py * selfregister of lambda in metrics for detach issue * improvment : empty _child, fill _child when attach * replace child impl by weakref * remove debug * fix bug * dont detach - weakref engine is only used for is_detach() * Update ignite/metrics/metrics_lambda.py * Update ignite/metrics/metrics_lambda.py Co-Authored-By: vfdev <vfdev.5@gmail.com> * Update ignite/metrics/metrics_lambda.py Co-Authored-By: vfdev <vfdev.5@gmail.com> * replace weakref * docs improvment * Update metrics_lambda.py * Update metric.py Co-authored-by: Desroziers <sylvain.desroziers@ifpen.fr> Co-authored-by: vfdev <vfdev.5@gmail.com>
- Loading branch information
1 parent
981e9c4
commit 59ca2f8
Showing
4 changed files
with
170 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters