Spaces:
Runtime error
Runtime error
File size: 285 Bytes
73baeae |
1 2 3 4 5 6 7 8 9 10 11 12 |
from dataclasses import dataclass
from typing import Optional
import torch
from transformers.modeling_outputs import Seq2SeqLMOutput
@dataclass
class EnClapBartOutput(Seq2SeqLMOutput):
mcm_loss: Optional[torch.FloatTensor] = None
lm_loss: Optional[torch.FloatTensor] = None
|