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

Class Activation

tests/python/test_dataclass_enum.py:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51def test_attribute_carrying_basic() -> None:
52 class Activation(Enum, type_key=_unique_key("Activation")):
53 output_zero: bool
54 is_monotonic: bool
55
56 relu: ClassVar[Activation] = entry(output_zero=True, is_monotonic=True)
57 gelu: ClassVar[Activation] = entry(output_zero=False, is_monotonic=False)
58 silu: ClassVar[Activation] = entry(output_zero=False, is_monotonic=True)
59
60 assert isinstance(Activation.relu, Activation)
61 assert isinstance(Activation.gelu, Activation)

Callers

nothing calls this directly

Calls 2

entryFunction · 0.90
_unique_keyFunction · 0.70

Tested by

no test coverage detected