theano's symbolic mathematical computation, which is composed of:html
+,-,*,\,sqrt,sum,tanh
.Codenode
>>> import theano.tensor as T >>> x = T.matrix('x') >>> y = T.matrix('y') >>> z = x + y >>> print z.owner Elemwise{add,no_inplace}(Elemwise{pow,no_inplace}.0, y)
inputs
,op
and output
fields.owner
of x
and y
point to None
, as they are not the results of another computation. If one of them is the result of another computation, it's owner
field would point to another Apply Node.Note: Apply Node
points to z
, so z.owner
points back to the Apply
instance.python
internal node represent of computation graph in theano, which can be accessed by variable_name.owner
.app
the Apply
Node has three fields, and can be created by gof.Apply(op,inputs,outputs)
:.net
certain computation on some inputs and producing some types of outputs.debug
it helps to tailor C code to handle and optimize the computation graph.code
Apply Node
a constant
is a variable
. it assume the Op Node
will not modify the inputs.htm