Skip to content

Commit

Permalink
[feat]: add type convert force for conv1d
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Mar 4, 2022
1 parent 1a44891 commit ec56cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easy_rec/python/layers/common_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def text_cnn(x,
# conv shape: (batch_size, seq_len - filter_size + 1, num_filters)
conv = tf.layers.conv1d(
x,
filters=num_filter,
kernel_size=filter_size,
filters=int(num_filter),
kernel_size=int(filter_size),
activation=tf.nn.relu,
name='conv_layer',
reuse=reuse,
Expand Down

0 comments on commit ec56cb7

Please sign in to comment.