Skip to content

Commit 601cfce

Browse files
Yanghan Wangfacebook-github-bot
authored andcommitted
use "legacy" dataclass at operator level
Summary: Pull Request resolved: facebookresearch#444 Differential Revision: D41828774 fbshipit-source-id: 91416a08aab456428db5796c7551249907542bd1
1 parent 02723f2 commit 601cfce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

d2go/trainer/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TrainNetOutput:
1818
metrics: MetricsDict[float]
1919
# Optional, because we use None to distinguish "not used" from
2020
# empty model configs. With T127368935, this should be reverted to dict.
21-
model_configs: Optional[Dict[str, str]]
21+
model_configs: Dict[str, str]
2222
# TODO (T127368603): decide if `tensorboard_log_dir` should be part of output
2323
tensorboard_log_dir: Optional[str] = None
2424

0 commit comments

Comments
 (0)