serve
serve copied to clipboard
Unsupported model output data type
📚 The doc issue
Where is list of supported data type? How could I return numy-array, tensor, or bytes in postprocess()?
Suggest a potential alternative/fix
No response
@hungtooc For returning custom data types, you can serialize it to a bytearray and then deserialize it on the client side. For instance, for numpy array, you could use np.save
and np.load
to do this.
I'll leave this issue open to add this to the custom_service documentation