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
torch-blocksparse/csrc/utils.cpp
Line 115 in 9aa9478
Please have a look at this line. Implicit conversion from size_t to long is treated as an error in Clang.
size_t
long
/tmp/pip-install-62i124mf/torch-blocksparse/csrc/utils.cpp:115:41: error: non-constant-expression cannot be narrowed from type 'size_ t' (aka 'unsigned long') to 'long' in initializer list [-Wc++11-narrowing] torch::Tensor scratch = torch::empty({H, layout.sum().item<int>(), 4}, layout.dtype()); ^ /tmp/pip-install-62i124mf/torch-blocksparse/csrc/utils.cpp:115:41: note: insert an explicit cast to silence this issue torch::Tensor scratch = torch::empty({H, layout.sum().item<int>(), 4}, layout.dtype()); ^ static_cast<long>( )
Using GCC avoids the error.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
torch-blocksparse/csrc/utils.cpp
Line 115 in 9aa9478
Please have a look at this line. Implicit conversion from
size_t
tolong
is treated as an error in Clang.Using GCC avoids the error.
The text was updated successfully, but these errors were encountered: