pytorch-image-models/timm/layers/typing.py

8 lines
163 B
Python

from typing import Callable, Tuple, Type, Union
import torch
LayerType = Union[str, Callable, Type[torch.nn.Module]]
PadType = Union[str, int, Tuple[int, int]]