Does anyone know how to update a subset (i.e. only some indices) of the weights that are used in the forward propagation?
My guess is that I might be able to do that after applying compute_gradients as follows:
optimizer = tf.train.GradientDescentOptimizer(learning_rate=learning_rate)
grads_vars = optimizer.compute_gradients(loss, var_list=[weights, bias_h, bias_v])
...and then do something with the list of tuples in grads_vars
.