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

Method __bool__

python/tvm_ffi/container.py:722–724  ·  view source on GitHub ↗

Return True if the dict is non-empty.

(self)

Source from the content-addressed store, hash-verified

720 return _ffi_api.DictSize(self)
721
722 def __bool__(self) -> bool:
723 """Return True if the dict is non-empty."""
724 return len(self) > 0
725
726 def __iter__(self) -> Iterator[K]:
727 """Iterate over the dict's keys."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected