Discussion:
[theano-users] plotting the inner scan operations in d3viz?
Juan Camilo Gamboa Higuera
2017-08-02 00:35:11 UTC
Permalink
Hi all,

From a compiled function, how can i plot the inner graph of a scan with
d3viz? Is there a way of getting all the inner scan functions from a
compiled function? Can I pass those to d3viz?

Thanks!

-- Juan Camilo
--
---
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.
Frédéric Bastien
2017-08-08 18:59:15 UTC
Permalink
Hi,

there was plan to make d3viz support Scan, but it wasn't finished and we
don't have someone working on this now.

You can probably hack it with something like this:

# get the compiled scan node:
f= theano.function(...)
scans = [n for n in f.maker.fgraph.apply_node if isinstance(n.op,
theano.scan_module.scan_op.Scan)]
# I'll handle just the first scan for the demo

theano....d3viz(scans[0].op.fn)

This way, you will have one graph for the function and one for each scan in
the graph.

Keep us updated if you try it.

Frédéric

On Tue, Aug 1, 2017 at 8:35 PM Juan Camilo Gamboa Higuera <
Post by Juan Camilo Gamboa Higuera
Hi all,
From a compiled function, how can i plot the inner graph of a scan with
d3viz? Is there a way of getting all the inner scan functions from a
compiled function? Can I pass those to d3viz?
Thanks!
-- Juan Camilo
--
---
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
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.
Loading...