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/26 13:26:09 UTC

[singa] branch dev updated: Update the args in Normalize forward function

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 01ce4ed1 Update the args in Normalize forward function
     new 56d5109f Merge pull request #990 from NLGithubWP/dev
01ce4ed1 is described below

commit 01ce4ed1d82b9b659bae4401c953b624b96ed632
Author: NLGithubWP <xi...@gmail.com>
AuthorDate: Fri Aug 26 15:15:30 2022 +0800

    Update the args in Normalize forward function
---
 examples/demos/Classification/BloodMnist/transforms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/demos/Classification/BloodMnist/transforms.py b/examples/demos/Classification/BloodMnist/transforms.py
index f89a52f2..5b511179 100644
--- a/examples/demos/Classification/BloodMnist/transforms.py
+++ b/examples/demos/Classification/BloodMnist/transforms.py
@@ -128,7 +128,7 @@ class Normalize(object):
         self.std = std
         self.inplace = inplace
 
-    def forward(self, img: np.ndarray) -> np.ndarray:
+    def forward(self, img: np.ndarray):
         """
         Args:
             img (Numpy ndarray): Array image to be normalized.