Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tb fix #209

Closed
wants to merge 2 commits into from
Closed

Tb fix #209

wants to merge 2 commits into from

Conversation

cfmelend
Copy link
Contributor

@cfmelend cfmelend commented Jul 14, 2023

A quick fix to the tb TypeError issue seen here. It seems like the if not np.isnan(metric_value) call in this line is trying to convert some of the tensor values in metric_value (e.g. the train_loss) to numpy values. From what I can tell some of the values in metrics are floats and some are tensors so I added a short check to see if there are any tensors and if so make a copy of the variable, send to cpu, send to numpy (the last part might be wholly unnecessary).

Carlo Melendez added 2 commits July 14, 2023 13:52
@cfmelend cfmelend linked an issue Jul 14, 2023 that may be closed by this pull request
@cfmelend cfmelend closed this Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tensorboard is not working
2 participants