Skip to content

Commit

Permalink
Use py_utils.ApplyPadding
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 563449723
  • Loading branch information
lingvo-bot authored and Copybara-Service committed Sep 7, 2023
1 parent c00a74b commit 7f7e0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lingvo/core/conv_layers_with_time_padding.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ class PaddingLayer(base_layer.BaseLayer):

def FProp(self, theta, inputs, paddings):
paddings_expanded = tf.expand_dims(tf.expand_dims(paddings, -1), -1)
return inputs * (1.0 - paddings_expanded), paddings
return py_utils.ApplyPadding(paddings_expanded, inputs), paddings


class GlobalPoolingLayer(base_layer.BaseLayer):
Expand Down

0 comments on commit 7f7e0ac

Please sign in to comment.