Skip to content

Commit

Permalink
update strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac committed Jan 8, 2020
1 parent 3d3984d commit bfff218
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 1 addition & 5 deletions python/tvm/relay/op/nn/_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,7 @@ def compute_bitpack(attrs, inputs, out_dtype):
name)
return [out]

# @reg.register_schedule("nn.bitpack")
# def schedule_bitpack(attrs, outs, target):
# with target:
# return topi.generic.schedule_bitpack(outs)

reg.register_schedule("nn.bitpack", strategy.schedule_bitpack)
reg.register_pattern("nn.bitpack", OpPattern.INJECTIVE)


Expand Down
6 changes: 6 additions & 0 deletions python/tvm/relay/op/strategy/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ def schedule_l2_normalize(attrs, outs, target):
with target:
return topi.generic.schedule_l2_normalize(outs)

# bitpack
@generic_func
def schedule_bitpack(attrs, outs, target):
with target:
return topi.generic.schedule_bitpack(outs)

# conv2d
def wrap_compute_conv2d(topi_func, has_group=False):
def compute_conv2d(attrs, inputs, out_type):
Expand Down
1 change: 0 additions & 1 deletion topi/python/topi/generic/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ def schedule_binarize_pack(outs):
return _default_schedule(outs, False)


@tvm.target.override_native_generic_func("schedule_bitpack")
def schedule_bitpack(outs):
"""Schedule for bitpack
Parameters
Expand Down

0 comments on commit bfff218

Please sign in to comment.