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

Method __bool__

python/tvm_ffi/container.py:258–260  ·  view source on GitHub ↗

Return True if the array is non-empty.

(self)

Source from the content-addressed store, hash-verified

256 return _ffi_api.RecursiveHash(self)
257
258 def __bool__(self) -> bool:
259 """Return True if the array is non-empty."""
260 return len(self) > 0
261
262 def __add__(self, other: Iterable[T]) -> Array[T]:
263 """Concatenate two arrays."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected