Skip to content

Commit 6d3f451

Browse files
committed
✍️ update augmentation
1 parent 54200ec commit 6d3f451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_asr/augmentations/augments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def augment(self, inputs):
4949
outputs = inputs
5050
for au in self.augmentations:
5151
p = tf.random.uniform([])
52-
outputs = tf.cond(tf.less(p, self.prob), true_fn=lambda: au.augment(outputs), false_fn=lambda: outputs)
52+
outputs = tf.where(tf.less(p, self.prob), au.augment(outputs), outputs)
5353
return outputs
5454

5555

0 commit comments

Comments
 (0)