[go: up one dir, main page]

Skip to content

Commit

Permalink
Update modules.py
Browse files Browse the repository at this point in the history
fix as_list function call bug
  • Loading branch information
yinnxinn authored Dec 25, 2018
1 parent 6672f93 commit d2b0281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def multihead_attention(queries,
with tf.variable_scope(scope, reuse=reuse):
# Set the fall back option for num_units
if num_units is None:
num_units = queries.get_shape().as_list[-1]
num_units = queries.get_shape().as_list()[-1]

# Linear projections
Q = tf.layers.dense(queries, num_units, activation=tf.nn.relu) # (N, T_q, C)
Expand Down

0 comments on commit d2b0281

Please sign in to comment.