mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
parent
ecd5397106
commit
4475f1dc2a
@ -2029,6 +2029,7 @@ class FlaxBigBirdForQuestionAnswering(FlaxBigBirdPreTrainedModel):
|
||||
if token_type_ids is None:
|
||||
token_type_ids = (~logits_mask).astype("i4")
|
||||
logits_mask = jnp.expand_dims(logits_mask, axis=2)
|
||||
logits_mask = jax.ops.index_update(logits_mask, jax.ops.index[:, 0], False)
|
||||
|
||||
# init input tensors if not passed
|
||||
if token_type_ids is None:
|
||||
|
Loading…
Reference in New Issue
Block a user