(name: str, tensor_input)
| 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: |