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
conv = nn.Conv2d(c1, 1, 1, bias=False).requires_grad_(False) self.conv.weight.data[:] = nn.Parameter(x.view(1, c1, 1, 1))
https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules.py line73 requires_grad_(False) ? not support in torchsharp. conv.weight.data[:] = nn.Parameter(x.view(1, c1, 1, 1))
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue. It's been implemented incorrectly (easy fix):
public Tensor requires_grad_(bool requires_grad = true) { this.requires_grad = true; return this; }
In the meantime, use with_requires_grad() or set the requires_grad property directly.
with_requires_grad()
requires_grad
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
conv = nn.Conv2d(c1, 1, 1, bias=False).requires_grad_(False)
self.conv.weight.data[:] = nn.Parameter(x.view(1, c1, 1, 1))
https://github.com/ultralytics/ultralytics/blob/main/ultralytics/nn/modules.py
line73
requires_grad_(False) ? not support in torchsharp.
conv.weight.data[:] = nn.Parameter(x.view(1, c1, 1, 1))
The text was updated successfully, but these errors were encountered: