So what is actually returned for the field "kernel_quantizer" is a dictionary. Additionally, the field "kernel" is non-existent in nmodel.layers[1]. Am I using this function right? or is there some other function I could use?
(some background)
What I am actually trying to do is modify the layers, so create a new model using different layers of the original model. I first tried just
I realized, that the functions that are necessary for model behavior do get cloned correctly. That is kernel_quantizer_internal.
So this is not an issue,.
I have a problem cloning a model. The code bellow shows an example.
The output of this is:
So what is actually returned for the field "kernel_quantizer" is a dictionary. Additionally, the field "kernel" is non-existent in nmodel.layers[1]. Am I using this function right? or is there some other function I could use?
(some background) What I am actually trying to do is modify the layers, so create a new model using different layers of the original model. I first tried just
But this gave me an error (from the deepcopy function)
cannot pickle '_thread.RLock' object
.Does anyone know a better way of doing this? Thanks and regards, Jure