Compare commits

...

1 Commits

Author SHA1 Message Date
cyy
d7f5688841 Fix MSVC warnings 2025-07-12 10:29:11 +08:00

View File

@ -473,7 +473,7 @@ class TensorExprFuser {
bool all_inputs_have_sizes = true;
auto shapes = fmap(tensor_inputs, [&](Value* v) {
GRAPH_DEBUG("Getting aten::size for %", v->debugName());
all_inputs_have_sizes &= shape_of.count(v);
all_inputs_have_sizes &= shape_of.count(v) > 0;
return shape_of.count(v) != 0 ? shape_of.at(v) : nullptr;
});
if (!all_inputs_have_sizes) {