提交 de4ddf3b authored 作者: Frederic Bastien's avatar Frederic Bastien

import clean up.

上级 23dbd418
......@@ -45,7 +45,6 @@ from theano import tensor
from theano.tensor import opt, TensorType
from theano import gof
from theano.compile import optdb
from theano import config
import scan_op
from scan import scan
......
......@@ -39,7 +39,6 @@ __contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import itertools
import logging
import numpy
import warnings
from theano.compile import SharedVariable, function
from theano import compile
......@@ -47,13 +46,12 @@ from theano import gof
from theano.tensor import opt
from theano import tensor
from theano import config
from theano.updates import Updates
from theano.sandbox import cuda
import scan_op
from scan_op import safe_new, safe_to_cpu
import scan_utils
from scan_utils import safe_new, safe_to_cpu, traverse
from theano.sandbox import cuda
from theano.updates import Updates
# Logging function for sending warning or info
_logger = logging.getLogger('theano.scan_module.scan')
......
......@@ -12,32 +12,30 @@ __authors__ = ( "Razvan Pascanu "
__copyright__ = "(c) 2010, Universite de Montreal"
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import copy
import itertools
import logging
import time
import numpy
import time, sys
from theano.compile import SharedVariable, function, Param, Out
from theano.compile.function_module import ViewOp, DeepCopyOp
import theano
from theano.compile import function, Param, Out
from theano import compile
from theano import gradient
from theano.gof.python25 import all
from theano.gof.python25 import any
from theano.gof import Op, Apply
from theano import gof
from theano.misc import safe_asarray as safe_asarray
from theano.tensor import TensorType
from theano import tensor
from theano.tensor.opt import Shape_i
import theano
from theano.sandbox import cuda
import scan_utils
from scan_utils import safe_new, safe_to_cpu, traverse
from scan_utils import safe_new
# Logging function for sending warning or info
_logger = logging.getLogger('theano.scan_module.scan_op')
from theano.sandbox import cuda
class Scan(Op):
#
......
......@@ -11,30 +11,17 @@ __authors__ = ( "Razvan Pascanu "
__copyright__ = "(c) 2010, Universite de Montreal"
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import copy_reg
import cPickle
import itertools
import logging
import numpy
import sys, time, copy
from theano import config
from theano.gof.python25 import partial
from theano.compile.pfunc import rebuild_collect_shared
from theano import gof
from theano import tensor
from theano.tensor.basic import get_constant_value
from theano.gof import Op, Apply
from theano.compile.io import *
from theano.compile.function_module import Supervisor, view_tree_set, alias_root
from theano.misc.safe_asarray import _asarray
import theano.compile.mode as mode_module
from theano.scalar import Scalar, ScalarVariable, ScalarConstant
from theano.sandbox import cuda
import theano
################ Utility Functions and Classes #######################
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论