Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Update vanilla_table_bert.py#5

Open
monk1337 wants to merge 1 commit intofacebookresearch:mainfrom
monk1337:master
Open

Update vanilla_table_bert.py#5
monk1337 wants to merge 1 commit intofacebookresearch:mainfrom
monk1337:master

Conversation

@monk1337
Copy link

@monk1337 monk1337 commented Jul 14, 2020

Details of the issue:

this argument was removed in the latest version of the transformers, it's throwing error with this argument.

def forward(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, **kwargs):
        sequence_output, _ = self._bert_model.bert(input_ids, token_type_ids, attention_mask, output_all_encoded_layers=False)

`using with that argument giving this error :

TypeError: forward() got an unexpected keyword argument 'output_all_encoded_layers'

Removing this argument works fine.

@facebook-github-bot
Copy link

Hi @monk1337!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 15, 2020
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants