Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
from
PIL
import
Image
2
from
tinygrad.helpers
import
getenv, GlobalCounters
3
import
torch, torchvision, pathlib, warnings
4
import
torchvision.transforms
as
transforms
Callers
nothing calls this directly
Calls
10
getenv
Function · 0.90
model
Function · 0.85
convert
Method · 0.80
unsqueeze
Method · 0.80
detach
Method · 0.80
argmax
Method · 0.80
reset
Method · 0.45
open
Method · 0.45
to
Method · 0.45
numpy
Method · 0.45
Tested by
no test coverage detected