Two DAGs with the same sharing shape are equal.
(self)
| 279 | """Test structural_eq="dag" kind.""" |
| 280 | |
| 281 | def test_same_dag_shape(self) -> None: |
| 282 | """Two DAGs with the same sharing shape are equal.""" |
| 283 | s1 = TBinding(name="s", value=1) |
| 284 | s2 = TBinding(name="s", value=1) |
| 285 | dag1 = tvm_ffi.Array([s1, s1]) # shared |
| 286 | dag2 = tvm_ffi.Array([s2, s2]) # shared (same shape) |
| 287 | assert structural_equal(dag1, dag2) |
| 288 | |
| 289 | def test_dag_vs_tree_not_equal(self) -> None: |
| 290 | """A DAG (shared) vs tree (independent copies) are NOT equal.""" |
nothing calls this directly
no test coverage detected