You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by zh...@apache.org on 2022/12/05 12:10:02 UTC
[singa] branch dev updated: Pass in the data path for loading training data
This is an automated email from the ASF dual-hosted git repository.
zhaojing pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/singa.git
The following commit(s) were added to refs/heads/dev by this push:
new 1cca8b5c Pass in the data path for loading training data
new 564a6f16 Merge pull request #1020 from NLGithubWP/data_update
1cca8b5c is described below
commit 1cca8b5c3f6d28409ae131b9cf20df44eff8d697
Author: NLGithubWP <xi...@gmail.com>
AuthorDate: Mon Dec 5 18:18:11 2022 +0800
Pass in the data path for loading training data
---
examples/cifar_distributed_cnn/data/cifar10.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/cifar_distributed_cnn/data/cifar10.py b/examples/cifar_distributed_cnn/data/cifar10.py
index 3b83ad7d..1f57d03a 100644
--- a/examples/cifar_distributed_cnn/data/cifar10.py
+++ b/examples/cifar_distributed_cnn/data/cifar10.py
@@ -82,7 +82,7 @@ def normalize(train_x, val_x):
val_x[:, ch, :, :] /= std[ch]
return train_x, val_x
-def load():
+def load(): # Need to pass in the path for loading training data
train_x, train_y = load_train_data()
val_x, val_y = load_test_data()
train_x, val_x = normalize(train_x, val_x)