Skip to content

Commit

Permalink
[Unity][Doc] Add ir_module decorator in the example
Browse files Browse the repository at this point in the history
Add ir_module decorator in the example to avoid failure for new ones to use this example.
  • Loading branch information
gfvvz committed Aug 15, 2024
1 parent c1e2752 commit 5a0b664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tvm/relax/vm_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def build(
.. code-block:: python
@tvm.script.ir_module
class InputModule:
@R.function
def foo(x: Tensor((3, 4), "float32"), y: Tensor((3, 4), "float32")):
Expand Down

0 comments on commit 5a0b664

Please sign in to comment.