MCPcopy
hub / github.com/fauxpilot/fauxpilot / torch2pb

Function torch2pb

python_backend/model.py:19–21  ·  view source on GitHub ↗
(name, tensor)

Source from the content-addressed store, hash-verified

17
18
19def torch2pb(name, tensor):
20 return pb_utils.Tensor(name, tensor.numpy())
21 # return pb_utils.Tensor.from_dlpack(name, to_dlpack(tensor))
22
23
24class TritonPythonModel:

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected