Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix MBCC inference (#17660)
Browse files Browse the repository at this point in the history
* Fix MBCC

* retrigger CI

* retrigger CI

* retrigger CI
  • Loading branch information
stu1130 authored Feb 25, 2020
1 parent d51753b commit 5098dbe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions tests/nightly/model_backwards_compatibility_check/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down Expand Up @@ -29,12 +29,9 @@
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)

def cmp(x, y): # Python 3
return (x > y) - (x < y)

# Set fixed random seeds.
mx.random.seed(7)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ echo `pwd`

echo '=========================='
export MXNET_ENFORCE_DETERMINISM=1
python model_backwards_compat_inference.py
python3 model_backwards_compat_inference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down

0 comments on commit 5098dbe

Please sign in to comment.