Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
yongwww authored May 20, 2019
1 parent 7971258 commit 2db1f06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,9 +936,9 @@ def _impl(inputs, attr, params):

def _clip_by_value():
def _impl(inputs, attr, params):
min = params.pop(inputs[1].name_hint).asnumpy()[0]
max = params.pop(inputs[2].name_hint).asnumpy()[0]
return _op.clip(inputs[0], a_min=min, a_max=max)
a_min = params.pop(inputs[1].name_hint).asnumpy()[0]
a_max = params.pop(inputs[2].name_hint).asnumpy()[0]
return _op.clip(inputs[0], a_min=a_min, a_max=a_max)
return _impl

def _reverse_v2():
Expand Down

0 comments on commit 2db1f06

Please sign in to comment.