Is it possible to save a trained layer to use layer on Keras?

By satoukibi

I haven’t used Keras and I’m thinking whether to use it or not.

I want to save a trained layer to use later. For example:

  1. I train a model.
  2. Then, I gain a trained layer t_layer.
  3. I have another model to train which consists of layer1, layer2, layer3 .
  4. I want to use t_layer as layer2 and not to update this layer(i.e. t_layer does not learn any more).

This may be an odd attempt, but I want to try this. Is this possible on Keras?

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273