This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/v1.x by this push:
new 8dbed96 Update base_module.py (#19096)
8dbed96 is described below
commit 8dbed966e35b979d8f770b0d5b0ec9f707b3a2f1
Author: Sheng Zha <[email protected]>
AuthorDate: Mon Sep 7 13:35:45 2020 -0700
Update base_module.py (#19096)
---
python/mxnet/module/base_module.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/mxnet/module/base_module.py
b/python/mxnet/module/base_module.py
index 053a00b..374d09c 100644
--- a/python/mxnet/module/base_module.py
+++ b/python/mxnet/module/base_module.py
@@ -569,7 +569,7 @@ class BaseModule(object):
#----------------------------------------
# evaluation on validation set
- if eval_data:
+ if eval_data is not None:
res = self.score(eval_data, validation_metric,
score_end_callback=eval_end_callback,
batch_end_callback=eval_batch_end_callback,
epoch=epoch)