We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From the readme,
for name, param in resnet18.named_parameters(): writer.add_histogram(name, param.clone().cpu().data.numpy(), n_iter)
Could we instead use the following simpler version?
for name, param in resnet18.named_parameters(): writer.add_histogram(name, param.data.cpu().numpy(), n_iter)
(Or we could put the .cpu() before the .data probably -- I don't think this matters.)
The text was updated successfully, but these errors were encountered:
Instead you can use writer.add_histogram(name, param, n_iter) if you use latest tensorboardX (see demo.py). I forget to update readme.
writer.add_histogram(name, param, n_iter)
Sorry, something went wrong.
No branches or pull requests
From the readme,
Could we instead use the following simpler version?
(Or we could put the .cpu() before the .data probably -- I don't think this matters.)
The text was updated successfully, but these errors were encountered: