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

Method test_empty

tests/python/test_serialization.py:383–386  ·  view source on GitHub ↗

Empty shape roundtrips correctly.

(self)

Source from the content-addressed store, hash-verified

381 """Roundtrip tests for ffi.Shape containers."""
382
383 def test_empty(self) -> None:
384 """Empty shape roundtrips correctly."""
385 shape = tvm_ffi.Shape(())
386 _assert_roundtrip_eq(shape)
387
388 def test_1d(self) -> None:
389 """1D shape roundtrips correctly."""

Callers

nothing calls this directly

Calls 2

_assert_roundtrip_eqFunction · 0.85
ShapeMethod · 0.80

Tested by

no test coverage detected