Skip to content

Commit

Permalink
return values fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdviviano committed Jul 17, 2024
1 parent ef83ad7 commit c567a37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tutorials/examples/train_hypergrid_multinode.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,11 @@ def main(args): # noqa: C901
print ("total_time, sample_time, to_train_samples_time, loss_time, loss_backward_time, opt_time, rest_time")
print (total_time, sample_time, to_train_samples_time, loss_time, loss_backward_time, opt_time, rest_time)

return validation_info["l1_dist"]
try:
return validation_info["l1_dist"]
except KeyError:
print(validation_info.keys())
return validation_info["n_modes_found"]


def validate_hypergrid(
Expand Down

0 comments on commit c567a37

Please sign in to comment.