You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2020/09/07 07:24:27 UTC
[incubator-mxnet] 01/01: Update base_module.py
This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch szha-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
commit 7a1c4d67a5f24f4675d700d38fdbdb9260511ce6
Author: Sheng Zha <sz...@users.noreply.github.com>
AuthorDate: Mon Sep 7 00:22:23 2020 -0700
Update base_module.py
---
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)