How do you do this, for example like theano.shared(value=some_value, name='variable_name')

I have given my parameters a name and want to give my cost a name as well so as that when I use t.grad(cost=cost, wrt=params, add_names=True) that it actually assigns a name to the gradient parameters.

Thanks in advance!

asked Jan 07 at 07:30

Jim%20O%20Donoghue's gravatar image

Jim O Donoghue
1111


One Answer:

someone answered me on google groups, if anyone is interested you can assign a name directly to the "name" attribute of your cost!

Eg cost.name = "description"

answered Jan 07 at 10:40

Jim%20O%20Donoghue's gravatar image

Jim O Donoghue
1111

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.