Skip to content

Load trainability status of layers when importing them from JSON configuration #153

@mkaze

Description

@mkaze

Similar to #107, the trainability status of a layer is not taken into account when importing it from JSON configuration, e.g. if a layer is freezed in the saved JSON configuration it might be loaded as trainable (depending on the default value of isTrainable property for that layer).

To fix this, either each of the layer creator functions in ModelLoader.kt should be modified to set the isTrainable property of the created layer with value of config.trainable; or alternatively, this could be done in a single place like convertToLayer function for all layers. Further, one should take into account this issue when implementing a fix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions