Skip to content

Commit

Permalink
Ensure input order match between Bert & Roberta
Browse files Browse the repository at this point in the history
Signed-off-by: Morgan Funtowicz <morgan@huggingface.co>
  • Loading branch information
mfuntowicz committed Nov 11, 2020
1 parent d9796a9 commit 2cec2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_flax_roberta.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class FlaxRobertaModule(nn.Module):
intermediate_size: int

@nn.compact
def __call__(self, attention_mask, input_ids, token_type_ids, position_ids):
def __call__(self, input_ids, attention_mask, token_type_ids, position_ids):

# Embedding
embeddings = FlaxRobertaEmbeddings(
Expand Down

0 comments on commit 2cec2b4

Please sign in to comment.