d***@gmail.com
2017-08-05 00:22:37 UTC
Hello,
How can I replace a shared variable by a scalar in a graph? I am in
particular interested in replacing it by its current value. For instance,
say I have
Tensor Variable y
Thanks!
Daniel
How can I replace a shared variable by a scalar in a graph? I am in
particular interested in replacing it by its current value. For instance,
say I have
z = T.scalar('z')
x = theano.shared(1.0, 'x')
y = z + x
I would like to evaluate x in the above graph, so as to end up with ax = theano.shared(1.0, 'x')
y = z + x
Tensor Variable y
y = z + 1.0
which does not depend anymore on any Shared Variable. How can I do this?Thanks!
Daniel
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.