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

Class WithAnyField

tests/python/utils/test_unpack_dataclass.py:153–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 # Dynamic dispatch: Any-typed field receives a dataclass at runtime
152 @dataclasses.dataclass
153 class WithAnyField:
154 data: Any
155 scale: int
156
157 # data is Any -> schema marks it as "unpack" -> __dispatch called at runtime
158 # When data is a dataclass, it should be recursively unpacked

Callers 1

Calls

no outgoing calls

Tested by 1