We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35df825 commit 21a38c6Copy full SHA for 21a38c6
tensorlayer/layers/noise.py
@@ -72,7 +72,7 @@ def build(self, inputs=None):
72
pass
73
74
def forward(self, inputs):
75
- if (self.is_train and self.is_always) is False:
+ if (self.is_train or self.is_always) is False:
76
return inputs
77
else:
78
# noise = np.random.normal(0.0 , sigma , tf.to_int64(self.inputs).get_shape())
0 commit comments