File size: 317 Bytes
ffcfc75
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from typing import TYPE_CHECKING, Callable, Optional, Union

import numpy as np

from transformers.utils import is_torch_available

if is_torch_available():
    import torch

DNAInput = Union[
    str, list[int], np.ndarray, "torch.Tensor", list[str], list[list[int]], list[np.ndarray], list["torch.Tensor"]
]  # noqa