dtypes
DType
dataclass
¤
DType(
priority: int,
itemsize: int,
name: str,
fmt: Optional[FmtStr],
count: int,
_scalar: Optional[DType],
)
dtypes
¤
Methods:
-
is_float
– -
is_int
– -
is_unsigned
– -
is_bool
– -
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
– -
all
–
is_float
¤
Source code in tinygrad/dtype.py
75 76 77 |
|
is_int
¤
Source code in tinygrad/dtype.py
78 79 80 |
|
is_unsigned
¤
Source code in tinygrad/dtype.py
81 82 83 |
|
is_bool
¤
Source code in tinygrad/dtype.py
84 85 |
|
from_py
¤
from_py(x) -> DType
Source code in tinygrad/dtype.py
86 87 88 89 90 91 92 93 |
|
as_const
¤
Source code in tinygrad/dtype.py
94 95 96 97 98 99 100 |
|
min
¤
min(dtype: DType)
Source code in tinygrad/dtype.py
101 102 103 104 105 |
|
max
¤
max(dtype: DType)
Source code in tinygrad/dtype.py
106 107 108 109 110 |
|
finfo
¤
(exponent, mantissa)
Source code in tinygrad/dtype.py
111 112 113 114 115 |
|
fields
¤
Source code in tinygrad/dtype.py
116 117 |
|
imageh
¤
imageh(shp)
Source code in tinygrad/dtype.py
140 141 |
|
imagef
¤
imagef(shp)
Source code in tinygrad/dtype.py
142 143 |
|