mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix-copies
This commit is contained in:
parent
5982431814
commit
f0d20ad328
@ -931,6 +931,15 @@ class GPT2DoubleHeadsModel:
|
||||
requires_pytorch(self)
|
||||
|
||||
|
||||
class GPT2ForSequenceClassification:
|
||||
def __init__(self, *args, **kwargs):
|
||||
requires_pytorch(self)
|
||||
|
||||
@classmethod
|
||||
def from_pretrained(self, *args, **kwargs):
|
||||
requires_pytorch(self)
|
||||
|
||||
|
||||
class GPT2LMHeadModel:
|
||||
def __init__(self, *args, **kwargs):
|
||||
requires_pytorch(self)
|
||||
|
Loading…
Reference in New Issue
Block a user