Skip to content

Commit 21a38c6

Browse files
authored
Update noise.py
1 parent 35df825 commit 21a38c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/layers/noise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def build(self, inputs=None):
7272
pass
7373

7474
def forward(self, inputs):
75-
if (self.is_train and self.is_always) is False:
75+
if (self.is_train or self.is_always) is False:
7676
return inputs
7777
else:
7878
# noise = np.random.normal(0.0 , sigma , tf.to_int64(self.inputs).get_shape())

0 commit comments

Comments
 (0)