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 54200ec commit 6d3f451Copy full SHA for 6d3f451
tensorflow_asr/augmentations/augments.py
@@ -49,7 +49,7 @@ def augment(self, inputs):
49
outputs = inputs
50
for au in self.augmentations:
51
p = tf.random.uniform([])
52
- outputs = tf.cond(tf.less(p, self.prob), true_fn=lambda: au.augment(outputs), false_fn=lambda: outputs)
+ outputs = tf.where(tf.less(p, self.prob), au.augment(outputs), outputs)
53
return outputs
54
55
0 commit comments