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/08/23 10:53:07 UTC

[singa] branch dev updated: Update inline comments for prepreocessing and data loading

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 1ca75767 Update inline comments for prepreocessing and data loading
     new 89f83465 Merge pull request #976 from wannature/singa_15
1ca75767 is described below

commit 1ca75767faec7179fd78e0735504617af56d0f09
Author: wenqiao zhang <we...@zju.edu.cn>
AuthorDate: Tue Aug 23 17:44:45 2022 +0800

    Update inline comments for prepreocessing and data loading
---
 examples/demos/Classification/BloodMnist/ClassDemo.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/demos/Classification/BloodMnist/ClassDemo.py b/examples/demos/Classification/BloodMnist/ClassDemo.py
index faf0036f..1ce8e663 100644
--- a/examples/demos/Classification/BloodMnist/ClassDemo.py
+++ b/examples/demos/Classification/BloodMnist/ClassDemo.py
@@ -181,13 +181,13 @@ def accuracy(pred, target):
     return correct
 
 
-# define pre-processing methods (transforms)
+# Define pre-processing methods (transforms)
 transforms = Compose([
     ToTensor(),
     Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
 ])
 
-# dataset loading
+# Dataset loading
 dataset_path = "./bloodmnist"
 train_path = os.path.join(dataset_path, "train")
 val_path = os.path.join(dataset_path, "val")