Skip to content

Commit

Permalink
fix bug of SeqAugmentOps
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Sep 10, 2024
1 parent 2ea4b2a commit 01f3b16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions easy_rec/python/layers/keras/custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def call(self, inputs, training=None, **kwargs):
with tf.variable_scope(self.name, reuse=self.reuse):
mask_emb = tf.get_variable(
'mask', (embedding_dim,), dtype=tf.float32, trainable=True)
seq_len = tf.to_int32(seq_len)
aug_seq, aug_len = self.seq_augment(seq_input, seq_len, mask_emb,
self.seq_aug_params.crop_rate,
self.seq_aug_params.reorder_rate,
Expand Down

0 comments on commit 01f3b16

Please sign in to comment.