Hi,

I met one problem below:

thano.gradient.DisconnectedInputError: grad method was asked to compute the 
gradient with respect to a variable that is not part of the computational 
graph of the cost, or is used only by a non-differentiable operator: b
since it contains two models, I am also confused what is this b.....

my usage is: I first trained a modelA, and I use modelA as part of function 
for modelB, and I want modelA to be fixed, but when I compiled, this error 
occurred. 

code is like this:

A_output = ComputtaionGraph(costA).outputs 
B_cost = disconnected_grad(A_output) * some_other_calculation

Could you give me some advice? Thanks very much. 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to