Skip to content

Commit

Permalink
modify deploy_ext.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Sep 10, 2024
1 parent 696c68d commit 5c1303e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions easy_rec/python/layers/keras/custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(self, params, name='sequence_aug', reuse=None, **kwargs):
self.seq_augment = custom_ops.my_seq_augment

def build(self, input_shape):
print("input_shape:", input_shape)
assert type(input_shape) in (tuple, list) and len(
input_shape) >= 2, 'SeqAugmentOps must has at least two inputs'
embed_dim = int(input_shape[0][-1])
Expand All @@ -59,6 +60,7 @@ def build(self, input_shape):
super(SeqAugmentOps, self).build(input_shape)

def call(self, inputs, training=None, **kwargs):
print("inputs:", inputs)
assert isinstance(inputs, (list, tuple))
seq_input, seq_len = inputs[:2]

Expand Down

0 comments on commit 5c1303e

Please sign in to comment.