# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/01_aliases.ipynb.

# %% auto 0
__all__ = ['T', 'GenericType', 'Obj', 'Class', 'DeviceObj', 'Bool', 'Tensor', 'Number', 'Int', 'Int8', 'Int16', 'Int32', 'Int64',
           'UInt', 'UInt8', 'Short', 'Long', 'Float', 'Float16', 'Float32', 'Float64', 'Half', 'Single', 'Double',
           'Complex', 'Complex32', 'Complex64', 'Complex128', 'String']

# %% ../nbs/01_aliases.ipynb 3
from typing import TypeVar, Generic, TypeAlias

# %% ../nbs/01_aliases.ipynb 4
import torch

# %% ../nbs/01_aliases.ipynb 5
T = TypeVar('T')
GenericType: TypeAlias = Generic[T]

# %% ../nbs/01_aliases.ipynb 6
Obj = torch.obj
Class = torch.ClassType

DeviceObj = torch.DeviceObjType

Bool = torch.BoolType
Tensor = torch.TensorType

Number = torch.NumberType

Int = torch.IntType
Int8 = torch.int8
Int16 = torch.int16
Int32 = torch.int32
Int64 = torch.int64

UInt = torch.uint8
UInt8 = torch.uint8

Short = torch.short
Long = torch.long

Float = torch.FloatType
Float16 = torch.float16
Float32 = torch.float32
Float64 = torch.float64

Half = torch.float16
Single = torch.float32
Double = torch.float64

Complex = torch.ComplexType
Complex32 = torch.complex32
Complex64 = torch.complex64
Complex128 = torch.complex128

String = torch.StringType
