MCPcopy Create free account
hub / github.com/apache/tvm / _normalize_struct_info_proxy

Function _normalize_struct_info_proxy

python/tvm/relax/script/parser/entry.py:516–524  ·  view source on GitHub ↗
(annotation)

Source from the content-addressed store, hash-verified

514
515
516def _normalize_struct_info_proxy(annotation) -> StructInfoProxy:
517 if annotation is None:
518 return TupleProxy([])
519 elif callable(annotation):
520 return annotation()
521 elif isinstance(annotation, StructInfoProxy):
522 return annotation
523 else:
524 raise TypeError(f"Expected StructInfoProxy but got {type(annotation)}.")
525
526
527def _normalize_struct_info(struct_info, dict_globals: dict[str, Any] | None = None) -> StructInfo:

Callers 2

eval_struct_info_proxyFunction · 0.85
_normalize_struct_infoFunction · 0.85

Calls 1

TupleProxyClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…