This message was deleted.
# ask-for-help
s
This message was deleted.
🍱 1
🏁 1
a
https://github.com/bentoml/BentoML/blob/52b9defe4bfc7b9d49e0b7a7b9da2f6c89bd6fba/src/bentoml/grpc/v1/service.proto#L111 The ndarray can be get from
bentoml.grpc.v1.service_pb2.Response.ndarray
if it deemed to return a ndarray
m
Thank you, that was helpful. I am now doing the following inside the run function to convert to a regular np.array. Does this make sense?
Copy code
async def async_run(client: bentoml.client.Client):
    res = await client.async_call("encode", "Hello World")
    array = res.ndarray.float_values
    np_array = np.array(array)
    return np_array