Skip to content

Commit

Permalink
adding ArgReduceAttr to to inherit from Attrs (apache#9606)
Browse files Browse the repository at this point in the history
* adding ArgReduceAttrs as python class with register_object wrapper

* cleaning
  • Loading branch information
onkar-sima-ai authored and ylc committed Jan 7, 2022
1 parent dc03d13 commit 55fd5e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/tvm/relay/op/op_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ class ReduceAttrs(Attrs):
"""Attributes used in reduction operators (e.g. sum)"""


@tvm._ffi.register_object("relay.attrs.ArgReduceAttrs")
class ArgReduceAttrs(Attrs):
"""Attributes used in reduction operators (e.g. argmin/argmax)"""


@tvm._ffi.register_object("relay.attrs.VarianceAttrs")
class VarianceAttrs(Attrs):
"""Attributes used in reduction operators (e.g. sum)"""
Expand Down

0 comments on commit 55fd5e7

Please sign in to comment.