serve icon indicating copy to clipboard operation
serve copied to clipboard

Unsupported model output data type

Open hungtooc opened this issue 2 years ago • 1 comments

📚 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 avatar Aug 06 '22 05:08 hungtooc

@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

maaquib avatar Aug 09 '22 18:08 maaquib