Skip to content
Snippets Groups Projects
Commit 3cf910c8 authored by Steven S. Lyubomirsky's avatar Steven S. Lyubomirsky Committed by Tianqi Chen
Browse files

[Relay][Docs] Fix broken bullet points in Relay operator addition tutorial (#2325)

parent dc8fd79c
No related branches found
No related tags found
No related merge requests found
...@@ -7,10 +7,8 @@ that they will be integrated into Relay's type system. ...@@ -7,10 +7,8 @@ that they will be integrated into Relay's type system.
Registering an operator requires three steps: Registering an operator requires three steps:
- Using the ``RELAY_REGISTER_OP`` macro in C++ to - Using the ``RELAY_REGISTER_OP`` macro in C++ to register the operator's arity and type information
register the operator's arity and type information - Defining a C++ function to produce a call node for the operator and registering a Python API hook for the function
- Defining a C++ function to produce a call node for the
operator and registering a Python API hook for the function
- Wrapping the above Python API hook in a neater interface - Wrapping the above Python API hook in a neater interface
The file ``src/relay/op/tensor/binary.cc`` provides The file ``src/relay/op/tensor/binary.cc`` provides
...@@ -48,9 +46,7 @@ to specify the following information about an operator in Relay: ...@@ -48,9 +46,7 @@ to specify the following information about an operator in Relay:
- Arity (number of arguments) - Arity (number of arguments)
- Names and descriptions for positional arguments - Names and descriptions for positional arguments
- Support level (1 indicating an internal intrinsic, higher numbers - Support level (1 indicates an internal intrinsic; higher numbers indicate less integral or externally supported operators)
indicating operators that are not as integral to the framework or are
supported externally)
- A type relation for the operator - A type relation for the operator
The below example is from ``binary.cc`` and uses a broadcasting The below example is from ``binary.cc`` and uses a broadcasting
...@@ -144,8 +140,6 @@ before producing the call node: ...@@ -144,8 +140,6 @@ before producing the call node:
Summary Summary
------- -------
- A TVM operator can be registered in Relay using a relation to express - A TVM operator can be registered in Relay using a relation to express the appropriate type information.
the appropriate type information. - Using an operator in Relay requires a function to produce a call node for the operator.
- Using an operator in Relay requires a function to produce a
call node for the operator.
- It is best to have a simple Python wrapper for producing the call node. - It is best to have a simple Python wrapper for producing the call node.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment