Skip to content

Commit

Permalink
fix(rayTrain): float has no attribute .item() #68
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaacoub committed Dec 14, 2023
1 parent 1bb8d45 commit f58d614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rayTrain_Tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def train_func(config):
torch.save(model.state_dict(), checkpoint_path)
checkpoint = Checkpoint.from_directory(checkpoint_dir)

ray.train.report({"loss": loss.item()}, checkpoint=checkpoint)
ray.train.report({"loss": loss}, checkpoint=checkpoint)


if __name__ == "__main__":
Expand Down

0 comments on commit f58d614

Please sign in to comment.