Replies: 4 comments 4 replies
-
To fuel the discussion I set up an example that is nicely running but far from perfect integrated with DJL. I would appreciate advice on how to get this better integrated with DJL. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your deep insight. It helps me with my decision on how to proceed. For the next step, I'll give it a try with my inheritance approach, where each block explicitly serializes to onnx, but reuses the serialization capability of the child blocks. However, as you can see from my MNIST example, I introduced some ugly copy-paste blocks that I would like to eliminate. Do you think it would be possible to open up existing DJL blocks a bit more to inheritance? This should not hurt the users of the existing block, nor would it pollute the DJL code. See, for example, Conv2d: If this is feasible, I would put some suggestions in a pull request. |
Beta Was this translation helpful? Give feedback.
-
I'm not convinced that inherit from Block class is a right way to do. In the Block class, we have:
I think we can improve above method to fulfill your requirement. If that doesn't work adding getters to Block should work for you. |
Beta Was this translation helpful? Give feedback.
-
An example of a non-trivial network trained in DJL and exported to onnx running in your browser: |
Beta Was this translation helpful? Give feedback.
-
Suppose you
What would be the recommended way to convert the trained DJL model to ONNX model?
Beta Was this translation helpful? Give feedback.
All reactions