-
I am working on an AutoEncoder so I need to save the encoder section of the NN. Does anyone know of an example or have a code snippet handy that will allow me to create a Model and save the encoder part for later loading and initializing a I am also unsure of how to implement a TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Try making two models: one using just the encoder block that you want to save and one using the whole block that you are training with. For the translator, it is just a class to handle whatever logic you have for your preprocessing and postprocessing. Basically, the idea is to make some convenient Java class for your input and output of your model (or use one if it already exists). Then, convert from the input to NDList in the preprocessing and NDList to output in the postprocessing. |
Beta Was this translation helpful? Give feedback.
Try making two models: one using just the encoder block that you want to save and one using the whole block that you are training with.
For the translator, it is just a class to handle whatever logic you have for your preprocessing and postprocessing. Basically, the idea is to make some convenient Java class for your input and output of your model (or use one if it already exists). Then, convert from the input to NDList in the preprocessing and NDList to output in the postprocessing.