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

Method __len__

python/tvm_ffi/container.py:605–607  ·  view source on GitHub ↗

Return the number of items in the map.

(self)

Source from the content-addressed store, hash-verified

603 return ItemsView(self)
604
605 def __len__(self) -> int:
606 """Return the number of items in the map."""
607 return _ffi_api.MapSize(self)
608
609 def __bool__(self) -> bool:
610 """Return True if the map is non-empty."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected