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
Hi, topk_maxmum, _ = mask_d.topk(inactive_channels, dim=1, largest=False, sorted=False), (in 120 lines, layers.py)
topk_maxmum, _ = mask_d.topk(inactive_channels, dim=1, largest=False, sorted=False)
the author wants to obtain the top k values, however, the above code is not. if there are any errors?
The text was updated successfully, but these errors were encountered:
https://github.com/zhuogege1943/dgc/blob/86befbd7f7b685ab3bbfafcd027ca3551dda48e9/layers.py#L118-L123
In the original code, we use topk to find the k smallest values in line 120, and mask out those values (assign them to 0) in lines 121-123.
Sorry, something went wrong.
No branches or pull requests
Hi,
topk_maxmum, _ = mask_d.topk(inactive_channels, dim=1, largest=False, sorted=False)
, (in 120 lines, layers.py)the author wants to obtain the top k values, however, the above code is not. if there are any errors?
The text was updated successfully, but these errors were encountered: