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
b = torch.zeros_like(a)
should be preferred over
b = torch.zeros(...).to(a)
to avoid copies.
The text was updated successfully, but these errors were encountered:
Agree. It might be problematic to figure out statically when a in .to(a) is a tensor, and not a dtype or device. Do you have any real-world examples?
a
.to(a)
Sorry, something went wrong.
https://github.com/threestudio-project/threestudio/blob/main/threestudio/models/background/solid_color_background.py#L37-L39
No branches or pull requests
should be preferred over
to avoid copies.
The text was updated successfully, but these errors were encountered: