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 d5cd945 commit a54833dCopy full SHA for a54833d
include/tvm/node/structural_equal.h
@@ -357,7 +357,11 @@ class SEqualReducer {
357
// depth as array comparison is pretty common.
358
if (lhs.size() != rhs.size()) return false;
359
for (size_t i = 0; i < lhs.size(); ++i) {
360
- if (!(operator()(lhs[i], rhs[i]))) return false;
+ if constexpr (std::is_same_v<T, ffi::Any>) {
361
+ if (!(AnyEqual(lhs[i], rhs[i]))) return false;
362
+ } else {
363
+ if (!(operator()(lhs[i], rhs[i]))) return false;
364
+ }
365
}
366
return true;
367
0 commit comments