MCPcopy Index your code
hub / github.com/microsoft/Cream / write

Method write

TinyViT/data/augmentation/manager.py:145–148  ·  view source on GitHub ↗
(self, key: str, value: bytes)

Source from the content-addressed store, hash-verified

143 self.rank = rank
144
145 def write(self, key: str, value: bytes) -> bool:
146 if self.writer is None:
147 self.writer = _Writer(self.path, self.rank)
148 return self.writer.write(key, value)
149
150 def read(self, key: str) -> bytes:
151 if self.reader is None:

Callers

nothing calls this directly

Calls 2

_WriterClass · 0.85
writeMethod · 0.45

Tested by

no test coverage detected