Open jackm321 opened 5 years ago
I think this is very useful. For most applications the bundle is not self-sufficient since it requires some pre-processing of the image and some post-processing. By adding these in the graph the AOT bundles might become self-sufficient. I would also add to your list:
Apart from having the Nodes implemented and using them from the C++ API, I would be interested also in how should be make this functionality available for the front-end tools as well (e.g. model-compiler, image-classifier):
I would imagine the most common case would be this: I have a standard (say) model like MobileNet in ONNX format, and I want to compile it into a bundle but I also want to add the pre-processing/post-processing nodes into the graph such that I don`t have to implement that in the application.
What do you think?
Create Glow IR nodes and instructions for representing common pre/post processing tasks especially for image classification workloads for example: