You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2019/03/19 18:39:45 UTC

[incubator-mxnet] branch master updated: Enforce determinism for backwards compatibility checker (#14463)

This is an automated email from the ASF dual-hosted git repository.

lanking 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 c31bb7e  Enforce determinism for backwards compatibility checker (#14463)
c31bb7e is described below

commit c31bb7e16195bf283ee19b951280f2b28e3c3597
Author: Zach Kimberg <za...@kimberg.com>
AuthorDate: Tue Mar 19 11:39:04 2019 -0700

    Enforce determinism for backwards compatibility checker (#14463)
---
 .../model_backward_compat_checker.sh                                   | 3 ++-
 .../model_backwards_compatibility_check/train_mxnet_legacy_models.sh   | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/nightly/model_backwards_compatibility_check/model_backward_compat_checker.sh b/tests/nightly/model_backwards_compatibility_check/model_backward_compat_checker.sh
index 2338683..ba53146 100755
--- a/tests/nightly/model_backwards_compatibility_check/model_backward_compat_checker.sh
+++ b/tests/nightly/model_backwards_compatibility_check/model_backward_compat_checker.sh
@@ -27,4 +27,5 @@ cd tests/nightly/model_backwards_compatibility_check
 echo `pwd`
 
 echo '=========================='
-python model_backwards_compat_inference.py
\ No newline at end of file
+export MXNET_ENFORCE_DETERMINISM=1
+python model_backwards_compat_inference.py
diff --git a/tests/nightly/model_backwards_compatibility_check/train_mxnet_legacy_models.sh b/tests/nightly/model_backwards_compatibility_check/train_mxnet_legacy_models.sh
index 02d480d..9a1700f 100755
--- a/tests/nightly/model_backwards_compatibility_check/train_mxnet_legacy_models.sh
+++ b/tests/nightly/model_backwards_compatibility_check/train_mxnet_legacy_models.sh
@@ -25,6 +25,7 @@ run_models() {
 	echo '=========================='
 	echo "Running training files and preparing models"
 	echo '=========================='
+  export MXNET_ENFORCE_DETERMINISM=1
 	python model_backwards_compat_train.py
 	echo '=========================='
 }