enclap / modeling /modeling_outputs.py
tonyswoo's picture
Initial Commit
73baeae
raw
history blame contribute delete
285 Bytes
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