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/07 11:35:22 UTC
[singa] branch dev updated: Print intermediate results for cifar_distributed_cnn example
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 ac7d8565 Print intermediate results for cifar_distributed_cnn example
new a35a51de Merge pull request #1023 from NLGithubWP/print_log
ac7d8565 is described below
commit ac7d8565cfd0f843f0afdf845de72758fdfdad38
Author: NLGithubWP <xi...@gmail.com>
AuthorDate: Wed Dec 7 15:34:14 2022 +0800
Print intermediate results for cifar_distributed_cnn example
---
examples/cifar_distributed_cnn/train_cnn.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/cifar_distributed_cnn/train_cnn.py b/examples/cifar_distributed_cnn/train_cnn.py
index fa65894b..eb0fbf39 100644
--- a/examples/cifar_distributed_cnn/train_cnn.py
+++ b/examples/cifar_distributed_cnn/train_cnn.py
@@ -224,6 +224,8 @@ def run(global_rank,
start = time.time()
for b in range(niters):
+ # if b % 100 == 0:
+ # print ("b: \n", b)
# Generate the patch data in this iteration
# Train the model
model(tx, ty, dist_option, spars)