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

Function make_cyclic

tests/python/test_structural.py:142–152  ·  view source on GitHub ↗
(v_i64: int)

Source from the content-addressed store, hash-verified

140 v_map = tvm_ffi.Map({})
141
142 def make_cyclic(v_i64: int) -> object:
143 o = tvm_ffi.testing.create_object(
144 "testing.TestObjectDerived",
145 v_i64=v_i64,
146 v_f64=0.0,
147 v_str="x",
148 v_map=v_map,
149 v_array=tvm_ffi.Array([]),
150 )
151 o.v_array = tvm_ffi.Array([o]) # type: ignore[unresolved-attribute]
152 return o
153
154 a = make_cyclic(42)
155 b = make_cyclic(42)

Callers 1

Calls 1

ArrayMethod · 0.80

Tested by

no test coverage detected