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

Convert tensors in the stats dict into scalars #417

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

ZHAOTING
Copy link
Contributor

@ZHAOTING ZHAOTING commented Apr 4, 2023

The values of some items in the stats dictionary are tensors in the current code, and it prevents a tensorboard accelerate tracker from logging them.
This PR converts those tensors into scalars via .item() and makes the tensorboard tracker behave as expected.

Copy link
Collaborator

@jon-tow jon-tow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ZHAOTING!

@jon-tow jon-tow merged commit d3d1cef into CarperAI:main Apr 4, 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.

2 participants