Skip to content

Commit

Permalink
Fix quotes in ignore_keys (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdn-23 authored Apr 11, 2021
1 parent 587fd7b commit 7e9bf7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyserini/dsearch/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AnceEncoder(PreTrainedModel):
base_model_prefix = 'ance_encoder'
load_tf_weights = None
_keys_to_ignore_on_load_missing = [r'position_ids']
_keys_to_ignore_on_load_unexpected = [r'pooler", r"classifier']
_keys_to_ignore_on_load_unexpected = [r'pooler', r'classifier']

def __init__(self, config: RobertaConfig):
requires_pytorch(self)
Expand Down

0 comments on commit 7e9bf7e

Please sign in to comment.