We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/nfelnlp/thermostat/blob/a8180a2d83e1c3ec5f873dbf0ce0ab14026cf6bf/src/thermostat/explain.py#L54
def bert_forward(input_ids, attention_mask, token_type_ids): input_model = { 'input_ids': input_ids.long(), 'attention_mask': attention_mask.long(), 'token_type_ids': token_type_ids.long(), } output_model = model(**input_model)[0] return output_model def roberta_forward(input_ids, attention_mask): input_model = { 'input_ids': input_ids.long(), 'attention_mask': attention_mask.long(), } output_model = model(**input_model)[0] return output_model
The text was updated successfully, but these errors were encountered:
We could use try - catch to automatically circumvent the cast when in a later version of captum the issue is fixed.
Sorry, something went wrong.
rbtsbg
nfelnlp
No branches or pull requests
https://github.com/nfelnlp/thermostat/blob/a8180a2d83e1c3ec5f873dbf0ce0ab14026cf6bf/src/thermostat/explain.py#L54
The text was updated successfully, but these errors were encountered: