tensorlayer / TensorLayer

Deep Learning and Reinforcement Learning Library for Scientists and Engineers
http://tensorlayerx.com
Other
7.34k stars 1.61k forks source link

[fix bug] copy original model's trainable_weights and nontrainable_weights when initializing ModelLayer #1026

Closed warshallrho closed 5 years ago

warshallrho commented 5 years ago

Checklist

Motivation and Context

Description

[fix bug] copy original model's trainable_weights and nontrainable_weights when initializing ModelLayer Otherwise, the trainable_weights of ModelLayer will be an empty list.