dtypes
dtypes
¤
Methods:
-
is_float
– -
is_int
– -
is_unsigned
– -
from_py
– -
as_const
– -
min
– -
max
– -
finfo
–(exponent, mantissa)
-
fields
– -
imageh
– -
imagef
–
Attributes:
-
void
(Final[DType]
) – -
bool
(Final[DType]
) – -
int8
(Final[DType]
) – -
uint8
(Final[DType]
) – -
int16
(Final[DType]
) – -
uint16
(Final[DType]
) – -
int32
(Final[DType]
) – -
uint32
(Final[DType]
) – -
int64
(Final[DType]
) – -
uint64
(Final[DType]
) – -
float16
(Final[DType]
) – -
bfloat16
(Final[DType]
) – -
float32
(Final[DType]
) – -
float64
(Final[DType]
) – -
half
– -
float
– -
double
– -
uchar
– -
ushort
– -
uint
– -
ulong
– -
char
– -
short
– -
int
– -
long
– -
default_float
(DType
) – -
default_int
(DType
) – -
floats
– -
uints
– -
sints
– -
ints
–
is_float
¤
Source code in tinygrad/dtype.py
47 48 49 |
|
is_int
¤
Source code in tinygrad/dtype.py
50 51 52 |
|
is_unsigned
¤
Source code in tinygrad/dtype.py
53 54 55 |
|
from_py
¤
from_py(x) -> DType
Source code in tinygrad/dtype.py
56 57 58 59 60 61 62 63 |
|
as_const
¤
Source code in tinygrad/dtype.py
64 65 66 67 68 69 70 |
|
min
¤
min(dtype: DType)
Source code in tinygrad/dtype.py
71 72 73 74 75 |
|
max
¤
max(dtype: DType)
Source code in tinygrad/dtype.py
76 77 78 79 80 |
|
finfo
¤
(exponent, mantissa)
Source code in tinygrad/dtype.py
81 82 83 84 85 |
|
fields
¤
Source code in tinygrad/dtype.py
86 87 |
|
imageh
¤
imageh(shp)
Source code in tinygrad/dtype.py
110 111 |
|
imagef
¤
imagef(shp)
Source code in tinygrad/dtype.py
112 113 |
|