MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _make_shared_binary_dag

Function _make_shared_binary_dag

tests/python/test_dataclass_hash.py:838–843  ·  view source on GitHub ↗
(depth: int)

Source from the content-addressed store, hash-verified

836
837
838def _make_shared_binary_dag(depth: int) -> object:
839 node: object = 1
840 for _ in range(depth):
841 # Two edges point to the same child object (DAG with heavy sharing).
842 node = tvm_ffi.Array([node, node])
843 return node
844
845
846def test_shared_dag_hash_scaling_not_exponential() -> None:

Calls 1

ArrayMethod · 0.80

Tested by

no test coverage detected