MCPcopy
hub / github.com/tinygrad/tinygrad / imagef

Method imagef

tinygrad/dtype.py:208–208  ·  view source on GitHub ↗
(shp)

Source from the content-addressed store, hash-verified

206 def imageh(shp): return ImageDType(100, 16, "imageh", 'e', 1, None, dtypes.float32, AddrSpace.GLOBAL, 1, prod(shp), shp)
207 @staticmethod
208 def imagef(shp): return ImageDType(100, 32, "imagef", 'f', 1, None, dtypes.float32, AddrSpace.GLOBAL, 1, prod(shp), shp)
209
210 default_float: ClassVar[DType] = float32
211 default_int: ClassVar[DType] = int32

Callers 6

test_image_scalarMethod · 0.80
test_image_vecMethod · 0.80
test_image_neMethod · 0.80
test_strsMethod · 0.80
get_load_image_uopFunction · 0.80

Calls 2

prodFunction · 0.90
ImageDTypeClass · 0.85

Tested by 5

test_image_scalarMethod · 0.64
test_image_vecMethod · 0.64
test_image_neMethod · 0.64
test_strsMethod · 0.64
get_load_image_uopFunction · 0.64