MCPcopy
hub / github.com/fauxpilot/fauxpilot / prepare_tensor

Method prepare_tensor

copilot_proxy/utils/codegen.py:28–32  ·  view source on GitHub ↗
(name: str, tensor_input)

Source from the content-addressed store, hash-verified

26
27 @staticmethod
28 def prepare_tensor(name: str, tensor_input):
29 t = client_util.InferInput(
30 name, tensor_input.shape, np_to_triton_dtype(tensor_input.dtype))
31 t.set_data_from_numpy(tensor_input)
32 return t
33
34 @staticmethod
35 def trim_with_stopwords(output: str, stopwords: list) -> str:

Callers 1

generateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected