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

Method __bool__

python/tvm_ffi/container.py:609–611  ·  view source on GitHub ↗

Return True if the map is non-empty.

(self)

Source from the content-addressed store, hash-verified

607 return _ffi_api.MapSize(self)
608
609 def __bool__(self) -> bool:
610 """Return True if the map is non-empty."""
611 return len(self) > 0
612
613 def __iter__(self) -> Iterator[K]:
614 """Iterate over the map's keys."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected