MCPcopy
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

1538class _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

fetchFunction · 0.45
call_gradientFunction · 0.45
compute_gradientFunction · 0.45
__call__Method · 0.45
visitorFunction · 0.45
_apply_uopMethod · 0.45
from_uopMethod · 0.45
_multi_likeMethod · 0.45
gradientMethod · 0.45
_wrapperFunction · 0.45
test_producer_simpleMethod · 0.45
test_inflight_bufMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_producer_simpleMethod · 0.36
test_inflight_bufMethod · 0.36
test_dedupMethod · 0.36
test_call_graphMethod · 0.36
test_getotherprocessMethod · 0.36
test_models_endpointMethod · 0.36
assertDeviceUsedMethod · 0.36
check_assignFunction · 0.36
test_enumsMethod · 0.36