tvm_ffi.get_first_structural_mismatch#
- tvm_ffi.get_first_structural_mismatch(lhs, rhs, map_free_vars=False, skip_tensor_content=False)[source]#
Like structural_equal(), but returns the AccessPath pair of the first detected mismatch.
- Parameters:
- Return type:
- Returns:
mismatch (tuple[AccessPath, AccessPath] | None) – None if lhs and rhs are structurally equal. Otherwise, a tuple of two AccessPath objects that point to the first detected mismatch.