You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the Net's layers are stored as an array of pointers, they cannot simply be copied with the default copy constructor. You have to copy each layer's weights individually. You can either use get_parameters() or add your own get_weights() which can return a vector of matrices (weights and bias).
Might I suggest this library, https://github.com/rkuang9/FLARE. It allows you to save weights to a file and load from them. It offers more functionality like convolution, convolution transpose, LSTM, GRU, BiRNN (and Multihead Attention soon) and uses tensors instead of being limited to matrix and vectors. If you've used TensorFlow or PyTorch, this library will be familiar. It's easy to add to your project with CMake and there are examples to get you started.
Hi, i'm trying to copy a network to another
this code gives me error :
cannot be assigned because its copy assignment is implicitly deleted
this->net = this->targetnet;
if its not possible at least i need to copy weights
The text was updated successfully, but these errors were encountered: