Skip to content

Commit f02d654

Browse files
galrotemfacebook-github-bot
authored andcommitted
remove unused attribute from iteration time logger (#792)
Summary: Pull Request resolved: #792 Reviewed By: JKSenthil Differential Revision: D56329189 fbshipit-source-id: 7ce8cbb820110a942c410da6ab114a9477286d05
1 parent 2409e14 commit f02d654

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

torchtnt/framework/callbacks/iteration_time_logger.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# pyre-strict
88

99

10-
from typing import cast, Optional, Union
10+
from typing import cast, Union
1111

1212
from pyre_extensions import none_throws
1313
from torch.utils.tensorboard import SummaryWriter
@@ -31,8 +31,6 @@ class IterationTimeLogger(Callback):
3131
log_every_n_steps: an optional int to control the log frequency
3232
"""
3333

34-
_writer: Optional[SummaryWriter] = None
35-
3634
def __init__(
3735
self,
3836
logger: Union[MetricLogger, SummaryWriter],

0 commit comments

Comments
 (0)