Skip to content

Commit

Permalink
[RELAY][PY] Fix relay node registration after refactor (apache#5083)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored and zhiics committed Apr 17, 2020
1 parent fcf7de6 commit 4db67b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tvm/relay/op/op_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ class Conv2DWinogradWeightTransformAttrs(Attrs):
class Conv2DWinogradNNPACKWeightTransformAttrs(Attrs):
"""Attributes for nn.contrib_conv2d_winograd_nnpack_weight_transform"""

@register_relay_attr_node

@tvm._ffi.register_object("relay.attrs.Dilation2DAttrs")
class Dilation2DAttrs(Attrs):
"""Attributes for nn.dilation2d"""


@tvm._ffi.register_object("relay.attrs.GlobalPool2DAttrs")
class GlobalPool2DAttrs(Attrs):
"""Attributes for nn.global_pool"""
Expand Down

0 comments on commit 4db67b8

Please sign in to comment.