Skip to content

Commit

Permalink
Revert "[MXNET-696] Define cmp() in Python 3 for line 222 (apache#12191
Browse files Browse the repository at this point in the history
…)" (apache#12231)

This reverts commit 54ed3e5.
  • Loading branch information
vandanavk authored and marcoabreu committed Aug 17, 2018
1 parent 9954750 commit 726bd60
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/nightly/model_backwards_compatibility_check/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
import re
from mxnet.test_utils import assert_almost_equal

try:
cmp # Python 2
except NameError:
# See: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons
def cmp(x, y): # Python 3
return (x > y) - (x < y)

# Set fixed random seeds.
mx.random.seed(7)
np.random.seed(7)
Expand Down

0 comments on commit 726bd60

Please sign in to comment.