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:26 UTC

[incubator-mxnet] branch szha-patch-1 created (now 7a1c4d6)

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

zhasheng pushed a change to branch szha-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git.


      at 7a1c4d6  Update base_module.py

This branch includes the following new commits:

     new 7a1c4d6  Update base_module.py

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-mxnet] 01/01: Update base_module.py

Posted by zh...@apache.org.
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)