MCPcopy
hub / github.com/tinygrad/tinygrad / example.py

File example.py

extra/torch_backend/example.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from PIL import Image
2from tinygrad.helpers import getenv, GlobalCounters
3import torch, torchvision, pathlib, warnings
4import torchvision.transforms as transforms

Callers

nothing calls this directly

Calls 10

getenvFunction · 0.90
modelFunction · 0.85
convertMethod · 0.80
unsqueezeMethod · 0.80
detachMethod · 0.80
argmaxMethod · 0.80
resetMethod · 0.45
openMethod · 0.45
toMethod · 0.45
numpyMethod · 0.45

Tested by

no test coverage detected