singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [singa] dcslin edited a comment on issue #691: Add save and load method for Module class
Date Sat, 16 May 2020 12:00:33 GMT

dcslin edited a comment on issue #691:

   From the perspective of a new onnx user:
   class MySONNXModel(SONNXModel):
   m1.compile([placeholder], ...)
   for _ in data:
   m1.save_states('./saved_models/my_sonnx_model_onnx_format') # transferable to other deeplearning
framework'./saved_models/my_sonnx_model_singa_format') # only valid in singa
   # Later reuse the model
   onnx_model = onnx.load('./saved_models/my_sonnx_model_onnx_format')
   m2.compile([x], use_graph=True)
   # m1 == m2?
   # load as singa model
   m3.compile([x], use_graph=True)
   # m1 == to_onnx(m3)?
   To be frank, I am a bit overwhelmed by all the discussions not just in this issue, is it
possible to consolidate the new API into a specification including example in singa-doc? Which
is useful for new users? btw, is [onnx-doc](
gonna change?

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message