Skip to content

Commit

Permalink
Merge pull request #167 from devrimcavusoglu/patch-1
Browse files Browse the repository at this point in the history
Update utils.py
  • Loading branch information
ricardorei authored Oct 11, 2023
2 parents 2f1d6e0 + 2a19472 commit ae37d0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions comet/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from dataclasses import dataclass
from typing import List

import torch
from torch.utils.data import Sampler
from transformers.utils import ModelOutput


@dataclass
class Prediction(ModelOutput):
"""Renamed ModelOutput"""

pass


@dataclass
class Target(ModelOutput):
"""Renamed ModelOutput into Targets to keep same behaviour"""

Expand Down

0 comments on commit ae37d0a

Please sign in to comment.