提交 13b58d7d authored 作者: Frederic Bastien's avatar Frederic Bastien

'move a file not used frequently under gof as it can be used by more type then tensor.'

上级 d0a3178b
"""Apply for use with Tensors that implements shape propagation via variable.tag.shape
This is not used currently very used. It appear in some case, but I'm not sure it if work or if it is used by default.
It could help the current system to make it detect problem earlier when contructing the graph instead of during optimization.
"""
import sys
from theano import gof
......@@ -37,5 +40,3 @@ class Apply(gof.Apply):
for o, oshp in zip(outputs, oshapes):
o.tag.shape = oshp
......@@ -13,7 +13,7 @@ import numpy, theano
from theano import gof, shared
from theano.gof import Variable, Op, Type, Constant, Value
from theano.tensor.tsor_apply import Apply
from theano.gof.apply_shape import Apply
from theano import gradient
......
......@@ -14,7 +14,7 @@ import theano.scalar
import basic as T
from theano.tensor.tsor_apply import Apply
from theano.gof.apply_shape import Apply
#NB: this clobbers the builtin 'compile' symbol
from theano import compile #to register the optimizer built by this file
......
......@@ -10,12 +10,14 @@ See especially conv2d().
__docformat__ = "restructuredtext en"
import sys, logging
import logging
import numpy
import theano
import theano.tensor as tensor
from theano import gof, Op, tensor, config
from theano.tensor.tsor_apply import Apply
from theano.gof.apply_shape import Apply
from theano.gof.python25 import any
imported_scipy_signal = False
......
......@@ -7,12 +7,11 @@ import numpy
import theano
from theano import gof
from theano import printing
from theano.tensor import basic as tensor
from theano.tensor import elemwise, dmatrix, fmatrix, dvector, fvector
from theano.tensor import opt
from theano.compile import optdb
from theano.tensor.tsor_apply import Apply
from theano.gof.apply_shape import Apply
from theano.tensor.nnet.sigm import sigmoid, softplus
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论