Skip to content

Commit

Permalink
[Relay] Expose qnn ops directly from relay.qnn module
Browse files Browse the repository at this point in the history
When we access `nn` ops in relay, we can directly access them as
`relay.nn.<op>` where `<op>` can be any nn op like `conv2d`,
`avg_pool2d`, etc.

When we access `qnn` ops, we need to access them as `relay.qnn.op.<op>`
as they're not exposed to the `relay.qnn` module. This change tries to
add that.
  • Loading branch information
quic-sanirudh committed Oct 13, 2023
1 parent fdfd16c commit 82f23c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tvm/relay/qnn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# pylint: disable=wildcard-import
# pylint: disable=wildcard-import,redefined-builtin
"""QNN dialect operators and IR passes."""
from __future__ import absolute_import as _abs
from . import op
from . import transform
from .op.qnn import *

0 comments on commit 82f23c5

Please sign in to comment.