API Documentation¶
This documentation covers Theano module-wise. 这适合于查找您可以用于构建和编译表达式图形的类型和操作。
compile
– Transforming Expression Graphs to Functionsconfig
– Theano Configurationd3viz
– d3viz: Interactive visualization of Theano compute graphsgof
– Theano Internals [doc TODO]gpuarray
– The (new) GPU backendgradient
— 符号微分misc.pkl_utils
- Tools for serialization.printing
– Graph Printing and Symbolic Print Statementsandbox
– Experimental Codescalar
– Symbolic Scalar Types, Ops [doc TODO]scan
– Looping in Theanosparse
– Symbolic Sparse Matricessparse
– Sparse Opsparse.sandbox
– Sparse Op Sandboxtensor
— 符号numpy的类型和操作typed_list
– Typed Listtests
– Tests
There are also some top-level imports that you might find more convenient:
-
theano.
function
(...)[source]¶ Alias for
theano.compile.function.function()
-
theano.
function_dump
(...)[source]¶ Alias for
theano.compile.function.function_dump()
Alias for
theano.compile.sharedvalue.shared()
-
theano.
dot
(x, y)[source]¶ Works like
tensor.dot()
for both sparse and dense matrix products
-
theano.
clone
(output, replace=None, strict=True, share_inputs=True, copy_inputs=<object object>)[source]¶ Function that allows replacing subgraphs of a computational graph.
It returns a copy of the initial subgraph with the corresponding substitutions.
Parameters: - output (Theano Variables (or Theano expressions)) – Theano expression that represents the computational graph.
- replace (dict) – Dictionary describing which subgraphs should be replaced by what.
- share_inputs (bool) – If True, use the same inputs (and shared variables) as the original graph. If False, clone them. Note that cloned shared variables still use the same underlying storage, so they will always have the same value.
- copy_inputs – Deprecated, use share_inputs.