Skip to content

Commit

Permalink
Fix tuple type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
bk-jc committed Aug 17, 2023
1 parent c344cec commit 27b0d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/exporters/ggml/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""ggml configuration base classes."""

from abc import ABC, abstractmethod
from typing import Dict, Union
from typing import Dict, Tuple, Union

from numpy import ndarray
from torch import Tensor
Expand Down Expand Up @@ -49,7 +49,7 @@ def reshape_weights(self, name: str, weights: Union[ndarray, Tensor], hparams: D

@staticmethod
@abstractmethod
def convert_dtype(name: str, data: Union[ndarray, Tensor], ftype: int, n_dims: int) -> tuple[ndarray, int]:
def convert_dtype(name: str, data: Union[ndarray, Tensor], ftype: int, n_dims: int) -> Tuple[ndarray, int]:
return data, ftype


Expand Down

0 comments on commit 27b0d60

Please sign in to comment.