We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1333f commit a6e4493Copy full SHA for a6e4493
official/nlp/bert_models.py
@@ -256,7 +256,8 @@ def call(self, inputs):
256
"""Implements call() for the layer."""
257
sequence_output = inputs
258
259
- input_shape = sequence_output.shape.as_list()
+ input_shape = tf_utils.get_shape_list(
260
+ sequence_output, name='sequence_output_tensor')
261
sequence_length = input_shape[1]
262
num_hidden_units = input_shape[2]
263
0 commit comments