"ml/git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "95e744beeb82f725579932336eeabc0de019cbf4"
Unverified Commit b1b0fc4f authored by Matt's avatar Matt Committed by GitHub
Browse files

Remove logging code in TF Longformer that fails to compile (#25496)

Remove wonky logger block
parent e97deca9
...@@ -1818,12 +1818,6 @@ class TFLongformerMainLayer(tf.keras.layers.Layer): ...@@ -1818,12 +1818,6 @@ class TFLongformerMainLayer(tf.keras.layers.Layer):
batch_size, seq_len = input_shape[:2] batch_size, seq_len = input_shape[:2]
padding_len = (attention_window - seq_len % attention_window) % attention_window padding_len = (attention_window - seq_len % attention_window) % attention_window
if padding_len > 0:
logger.info(
f"Input ids are automatically padded from {seq_len} to {seq_len + padding_len} to be a multiple of "
f"`config.attention_window`: {attention_window}"
)
paddings = tf.convert_to_tensor([[0, 0], [0, padding_len]]) paddings = tf.convert_to_tensor([[0, 0], [0, padding_len]])
if input_ids is not None: if input_ids is not 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