MCPcopy
hub / github.com/modelscope/ms-swift / put

Method put

swift/infer_engine/utils.py:114–115  ·  view source on GitHub ↗
(self, value: torch.Tensor)

Source from the content-addressed store, hash-verified

112class TokensIteratorStreamer(StreamerMixin, BaseStreamer):
113
114 def put(self, value: torch.Tensor) -> None:
115 self.queue.put(value)
116
117 def end(self) -> None:
118 self.queue.put(None)

Callers 15

appendMethod · 0.80
create_packed_idxMethod · 0.80
_processorMethod · 0.80
_put_data_in_queueMethod · 0.80
add_itemsMethod · 0.80
finalizeMethod · 0.80
endMethod · 0.80
__call__Method · 0.80
_get_paramsFunction · 0.80
_run_async_iterMethod · 0.80
funcMethod · 0.80
_infer_workerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected