Skip to content

Commit 2e9719f

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

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.github/workflows/basic_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Basic Test
22

33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- fix_wf
6+
- master
77

88
jobs:
99
test:

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)