Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tinygrad/tinygrad
/ gradient.py
File
gradient.py
tinygrad/gradient.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
typing
import
cast
2
import
math, dataclasses, itertools
3
from
tinygrad.uop.ops
import
UOp, PatternMatcher, UPat, Ops, all_metadata, graph_rewrite
4
from
tinygrad.helpers
import
argsort
Callers
nothing calls this directly
Calls
15
PatternMatcher
Class · 0.90
UPat
Class · 0.90
sum_acc_dtype
Function · 0.90
argsort
Function · 0.90
UOp
Class · 0.90
reduce_gradient
Function · 0.85
sin
Method · 0.80
log
Method · 0.80
eq
Method · 0.80
pow
Method · 0.80
log2
Method · 0.80
reshape
Method · 0.80
Tested by
no test coverage detected