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

Fix MBCC inference #17660

Merged
merged 4 commits into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix MBCC
  • Loading branch information
stu1130 committed Feb 22, 2020
commit b8fe8e8983e36d62fae4540e490628a792aa9496
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