File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def main():
109109 metrics (y , preds )
110110
111111 break
112- print (metrics .__getmetrics__ ())
112+ print (metrics .accumulate ())
113113 print ("Dry run completed successfully." )
114114 exit (0 )
115115
@@ -135,8 +135,8 @@ def main():
135135 preds = th .argmax (logits , dim = 1 )
136136 metrics (y , preds )
137137
138- wandb .log (metrics .__getmetrics__ (str_prefix = "Train " ))
139- metrics .__resetvalues__ ()
138+ wandb .log (metrics .accumulate (str_prefix = "Train " ))
139+ metrics .reset ()
140140
141141 evalloss = []
142142 # Eval loop start
@@ -151,8 +151,8 @@ def main():
151151 preds = th .argmax (logits , dim = 1 )
152152 metrics (y , preds )
153153
154- wandb .log (metrics .__getmetrics__ (str_prefix = "Evaluation " ))
155- metrics .__resetvalues__ ()
154+ wandb .log (metrics .accumulate (str_prefix = "Evaluation " ))
155+ metrics .reset ()
156156
157157 wandb .log (
158158 {
You can’t perform that action at this time.
0 commit comments