"examples/vscode:/vscode.git/clone" did not exist on "ac5c79cdb853d0d7e13b8431934ce67746a17843"
Commit 3de31f8d authored by Lysandre's avatar Lysandre
Browse files

mean does not exist in TF2

parent f3386d93
......@@ -454,7 +454,7 @@ class TFSequenceSummary(tf.keras.layers.Layer):
elif self.summary_type == 'first':
output = hidden_states[:, 0]
elif self.summary_type == 'mean':
output = tf.mean(hidden_states, axis=1)
output = tf.reduce_mean(hidden_states, axis=1)
elif self.summary_type == 'cls_index':
hidden_shape = shape_list(hidden_states) # e.g. [batch, num choices, seq length, hidden dims]
if cls_index is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment