MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / setUp

Method setUp

test/null/test_tensor_metadata.py:9–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7@unittest.skip("tensor metadata is no longer supported")
8class TestTensorMetadata(unittest.TestCase):
9 def setUp(self) -> None:
10 _METADATA.set(None)
11 self._ctx = Context(SCACHE=0)
12 self._ctx.__enter__()
13 def tearDown(self) -> None:
14 self._ctx.__exit__(None, None, None)
15

Callers

nothing calls this directly

Calls 3

ContextClass · 0.90
setMethod · 0.45
__enter__Method · 0.45

Tested by

no test coverage detected