We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7093c commit 51c8b48Copy full SHA for 51c8b48
torch_ipex/csrc/cpu/dbl/DNNLChecker.cpp
@@ -56,7 +56,7 @@ bool dnnl_support_the_dimension_of(const std::vector<at::Tensor> &tensor_vec) {
56
57
bool dnnl_tensor_has_data(const std::vector<at::Tensor> &tensor_vec) {
58
for (auto it = tensor_vec.begin(); it != tensor_vec.end(); ++it)
59
- if (it->data_ptr() == nullptr)
+ if (it->numel() == 0)
60
return false;
61
62
return true;
0 commit comments