Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tinygrad/tinygrad
/ get
Method
get
tinygrad/tensor.py:1540–1540 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1538
class
_ContextVar(Generic[T]):
1539
def
__init__(self, default:T): self.state:T = default
1540
def
get(self) -> T:
return
self.state
1541
def
set(self, x:T) -> T:
1542
ret, self.state = self.state, x
1543
return
ret
Callers
15
fetch
Function · 0.45
call_gradient
Function · 0.45
compute_gradient
Function · 0.45
__call__
Method · 0.45
visitor
Function · 0.45
_apply_uop
Method · 0.45
from_uop
Method · 0.45
_multi_like
Method · 0.45
gradient
Method · 0.45
_wrapper
Function · 0.45
test_producer_simple
Method · 0.45
test_inflight_buf
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_producer_simple
Method · 0.36
test_inflight_buf
Method · 0.36
test_annotate_read_write
Method · 0.36
test_reconstruct_debug
Method · 0.36
test_dedup
Method · 0.36
test_call_graph
Method · 0.36
test_getotherprocess
Method · 0.36
test_models_endpoint
Method · 0.36
test_clang_jit_compiler_external_raise
Method · 0.36
assertDeviceUsed
Method · 0.36
check_assign
Function · 0.36
test_enums
Method · 0.36