Skip to content

Commit eeb963b

Browse files
committed
remove "torchscript=True" since it is no longer supported by "AutoModel.from_pretrained()"
1 parent d831cdb commit eeb963b

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

libmultilabel/nn/networks/bert.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def __init__(
3434
hidden_dropout_prob=encoder_hidden_dropout,
3535
attention_probs_dropout_prob=encoder_attention_dropout,
3636
classifier_dropout=post_encoder_dropout,
37-
# torchscript=True,
3837
)
3938

4039
def forward(self, input):

libmultilabel/nn/networks/bert_attention.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def __init__(
4040

4141
self.lm = AutoModel.from_pretrained(
4242
lm_weight,
43-
# torchscript=True,
4443
hidden_dropout_prob=encoder_hidden_dropout,
4544
attention_probs_dropout_prob=encoder_attention_dropout,
4645
)

0 commit comments

Comments
 (0)