What are you Theano flags? I suppose you are odnig optimizer=None.
That would explain why it isn't optimized. Using optimizer=None isn't
recommanded.
I tried it just in case and here it get merged correctly.
On Sun, May 21, 2017 at 7:56 AM Alexander Botev wrote:
> Is it
Is it possible to see the optimized graph than, or somehow get things
identified that they are reused on the graph? If I make a picture with
pydotprint there are still 2 separate nodes with the sigmoid, while I want
to have a graph where there is only one.
On Sunday, 21 May 2017 00:59:34
> when it can just reuse that computation
That's what optimization does. Try running it with device=cpu and
optimizer=fast_run
On Saturday, May 20, 2017 at 11:55:19 PM UTC+8, Alexander Botev wrote:
>
> I have the following code:
>
> >>> a = T.fmatrix()
> >>> b = T.sqr(a)
> >>> c =