You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2018/08/17 23:27:10 UTC
[incubator-mxnet] branch master updated: Revert "[MXNET-696] Define
cmp() in Python 3 for line 222 (#12191)" (#12231)
This is an automated email from the ASF dual-hosted git repository.
marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 24e42a0 Revert "[MXNET-696] Define cmp() in Python 3 for line 222 (#12191)" (#12231)
24e42a0 is described below
commit 24e42a0b3a0e32ecbdb7a429731573210854deb9
Author: Vandana Kannan <va...@users.noreply.github.com>
AuthorDate: Fri Aug 17 16:26:57 2018 -0700
Revert "[MXNET-696] Define cmp() in Python 3 for line 222 (#12191)" (#12231)
This reverts commit 54ed3e5d95b997bf1957b4e5cd7f117894ed4a19.
---
tests/nightly/model_backwards_compatibility_check/common.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/tests/nightly/model_backwards_compatibility_check/common.py b/tests/nightly/model_backwards_compatibility_check/common.py
index c41b11f..8950a92 100644
--- a/tests/nightly/model_backwards_compatibility_check/common.py
+++ b/tests/nightly/model_backwards_compatibility_check/common.py
@@ -29,13 +29,6 @@ from mxnet.gluon import nn
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)