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

Function test_decorator_functionality

tests/python/tirx-transform/test_tir_functor.py:358–366  ·  view source on GitHub ↗

Test that decorators work correctly

()

Source from the content-addressed store, hash-verified

356
357
358def test_decorator_functionality():
359 """Test that decorators work correctly"""
360
361 # Test that decorated classes are properly wrapped
362 visitor = SimpleExprCounter()
363 assert hasattr(visitor, "_outer") # Should have the wrapper functionality
364
365 mutator = VariableReplacer({})
366 assert hasattr(mutator, "_outer")
367
368
369def test_empty_expressions():

Callers

nothing calls this directly

Calls 2

SimpleExprCounterClass · 0.85
VariableReplacerClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…