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

Method write

tinygrad/nn/state.py:30–30  ·  view source on GitHub ↗
(self, s: Any)

Source from the content-addressed store, hash-verified

28 # required to correctly implement BinaryIO
29 def __enter__(self): return self
30 def write(self, s: Any): raise io.UnsupportedOperation("TensorIO.write not supported")
31 def writelines(self, lines: Iterable[Any]): raise io.UnsupportedOperation("TensorIO.writelines not supported")
32
33safe_dtypes = {"BOOL":dtypes.bool, "I8":dtypes.int8, "U8":dtypes.uint8, "I16":dtypes.int16, "U16":dtypes.uint16, "I32":dtypes.int, "U32":dtypes.uint,

Callers 4

mainFunction · 0.45
send_dataMethod · 0.45
stream_jsonMethod · 0.45
worker.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected