Skip to content

Commit

Permalink
Stop pylint complaining about unnecessary return statement. (apache#2684
Browse files Browse the repository at this point in the history
)

Recent pylint introduced support for the useless-return diagnostic.
This patch remove the useless returns.
  • Loading branch information
mshawcroft authored and wweic committed Mar 12, 2019
1 parent fcc8807 commit b1ecc0a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python/tvm/relay/quantize/_annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def conv2d_nchwc_rewrite(ref_call, new_args, ctx):
warnings.warn("NCHWc layout Conv2D detected, please use a lower "
"optimization level before applying the quantization "
"pass as quantization will have no effect here...")
return None


@register_annotate_function("nn.conv2d")
Expand Down

0 comments on commit b1ecc0a

Please sign in to comment.