OpFromGraphΒΆ
This page describes theano.OpFromGraph, an Op that allows to
encapsulate a Theano graph in an op.
This can be used to encapsulate some functionality in one block. It is useful to scale Theano compilation for regular bigger graphs when we reuse that encapsulated fonctionality with different inputs many times. Due to this encapsulation, it can make Theano compilation phase faster for graphs with many nodes.
Using this for small graphs is not recommended as it disables optimizations between what is inside the encapsulation and outside of it.