owlbarn / owl

Owl - OCaml Scientific Computing @ https://ocaml.xyz
MIT License
1.21k stars 122 forks source link

Freeze neuron's weight in training #239

Open jzstark opened 6 years ago

jzstark commented 6 years ago

In constructing a neural network in Tensorflow, user can choose to initialise the weight value as a tf.varialble or tf.const. The latter means that the weight will not be updated during training. I find this property useful in some use cases, such as neural style transfer. I think it would be great to have such "freeze" mechanism in Owl's NN module.

ryanrhymes commented 4 years ago

@jzstark is this still relevant? or implemented already?

jzstark commented 4 years ago

Sorry my bad, this function is still not implemented yet.