Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e14e9c33
提交
e14e9c33
authored
5月 02, 2015
作者:
David Warde-Farley
提交者:
Arnaud Bergeron
6月 22, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
reduce() and xrange() from six.
上级
af1314a0
隐藏空白字符变更
内嵌
并排
正在显示
40 个修改的文件
包含
42 行增加
和
7 行删除
+42
-7
aa.py
benchmark/autoencoder/aa.py
+1
-0
aa_numpy.py
benchmark/autoencoder/aa_numpy.py
+1
-0
regression.py
benchmark/regression/regression.py
+1
-0
ifelse_switch.py
doc/crei2013/ifelse_switch.py
+1
-0
scan_pow.py
doc/crei2013/scan_pow.py
+1
-0
scan_pow.py
doc/hpcs2011_tutorial/scan_pow.py
+1
-0
loop_solution_1.py
doc/tutorial/loop_solution_1.py
+1
-0
debugmode.py
theano/compile/debugmode.py
+2
-2
function_module.py
theano/compile/function_module.py
+1
-0
ops.py
theano/compile/ops.py
+1
-0
cc.py
theano/gof/cc.py
+1
-1
opt.py
theano/gof/opt.py
+1
-0
equilibrium.py
theano/gof/sandbox/equilibrium.py
+2
-0
test_destroyhandler.py
theano/gof/tests/test_destroyhandler.py
+1
-0
test_op.py
theano/gof/tests/test_op.py
+1
-0
test_sched.py
theano/gof/tests/test_sched.py
+1
-0
test_utils.py
theano/gof/tests/test_utils.py
+1
-0
test_vm.py
theano/gof/tests/test_vm.py
+1
-0
vm.py
theano/gof/vm.py
+1
-0
gradient.py
theano/gradient.py
+1
-0
ifelse.py
theano/ifelse.py
+1
-0
elemwise_time_test.py
theano/misc/elemwise_time_test.py
+1
-0
gnumpy_utils.py
theano/misc/gnumpy_utils.py
+1
-0
reindent.py
theano/misc/hooks/reindent.py
+1
-0
pycuda_example.py
theano/misc/pycuda_example.py
+1
-0
strutil.py
theano/misc/strutil.py
+1
-0
printing.py
theano/printing.py
+1
-1
GpuConvGrad3D.py
theano/sandbox/cuda/GpuConvGrad3D.py
+1
-0
GpuConvTransp3D.py
theano/sandbox/cuda/GpuConvTransp3D.py
+1
-0
basic_ops.py
theano/sandbox/cuda/basic_ops.py
+1
-1
blas.py
theano/sandbox/cuda/blas.py
+1
-1
opt.py
theano/sandbox/cuda/opt.py
+1
-0
test_opt.py
theano/sandbox/cuda/tests/test_opt.py
+1
-0
conv.py
theano/sandbox/gpuarray/conv.py
+1
-0
blas.py
theano/tensor/blas.py
+1
-0
opt.py
theano/tensor/opt.py
+1
-0
raw_random.py
theano/tensor/raw_random.py
+1
-0
test_basic.py
theano/tensor/tests/test_basic.py
+1
-1
test_record.py
theano/tests/test_record.py
+1
-0
test_tutorial.py
theano/tests/test_tutorial.py
+1
-0
没有找到文件。
benchmark/autoencoder/aa.py
浏览文件 @
e14e9c33
...
...
@@ -8,6 +8,7 @@ import time
import
theano
import
theano.tensor
as
T
import
theano.sandbox
from
theano.compat.six.moves
import
xrange
from
theano.compile
import
module
,
Mode
,
ProfileMode
from
theano
import
gof
,
Op
,
Apply
...
...
benchmark/autoencoder/aa_numpy.py
浏览文件 @
e14e9c33
...
...
@@ -4,6 +4,7 @@ from __future__ import absolute_import
import
numpy
as
N
import
sys
import
time
from
theano.compat.six.moves
import
xrange
# c: aa.cc
...
...
benchmark/regression/regression.py
浏览文件 @
e14e9c33
...
...
@@ -3,6 +3,7 @@ import theano
import
numpy
as
N
from
theano
import
tensor
as
T
from
theano.tensor
import
nnet
as
NN
from
theano.compat.six.moves
import
xrange
from
theano.compile
import
module
as
M
class
RegressionLayer
(
M
.
Module
):
...
...
doc/crei2013/ifelse_switch.py
浏览文件 @
e14e9c33
...
...
@@ -5,6 +5,7 @@ import numpy
import
theano
from
theano
import
tensor
as
tt
from
theano.compat.six.moves
import
xrange
from
theano.ifelse
import
ifelse
a
,
b
=
tt
.
scalars
(
'a'
,
'b'
)
...
...
doc/crei2013/scan_pow.py
浏览文件 @
e14e9c33
from
__future__
import
print_function
import
theano
import
theano.tensor
as
tt
from
theano.compat.six.moves
import
xrange
k
=
tt
.
iscalar
(
"k"
)
A
=
tt
.
vector
(
"A"
)
...
...
doc/hpcs2011_tutorial/scan_pow.py
浏览文件 @
e14e9c33
from
__future__
import
print_function
import
theano
import
theano.tensor
as
T
from
theano.compat.six.moves
import
xrange
k
=
T
.
iscalar
(
"k"
);
A
=
T
.
vector
(
"A"
)
...
...
doc/tutorial/loop_solution_1.py
浏览文件 @
e14e9c33
...
...
@@ -6,6 +6,7 @@ import numpy
import
theano
import
theano.tensor
as
tt
from
theano.compat.six.moves
import
xrange
# 1. First example
...
...
theano/compile/debugmode.py
浏览文件 @
e14e9c33
...
...
@@ -17,8 +17,8 @@ import numpy
import
theano
from
theano
import
gof
from
theano.compat
import
get_unbound_function
,
product
as
itertools_product
from
theano.compat.six
import
StringIO
from
theano.gof
import
(
graph
,
utils
,
link
,
from
theano.compat.six
.moves
import
StringIO
,
xrange
from
theano.gof
import
(
FunctionGraph
,
graph
,
utils
,
link
,
ops_with_inner_function
)
from
theano.gof.link
import
raise_with_op
from
theano.configparser
import
(
config
,
AddConfigVar
,
BoolParam
,
IntParam
,
...
...
theano/compile/function_module.py
浏览文件 @
e14e9c33
...
...
@@ -13,6 +13,7 @@ import numpy
import
theano
from
theano
import
gof
from
theano.compat
import
partial
from
theano.compat.six.moves
import
xrange
import
theano.compile.mode
from
theano.compile.io
import
(
In
,
SymbolicInput
,
SymbolicInputKit
,
SymbolicOutput
)
...
...
theano/compile/ops.py
浏览文件 @
e14e9c33
...
...
@@ -9,6 +9,7 @@ import warnings
import
theano
from
theano
import
gof
from
theano.compat.six.moves
import
xrange
import
numpy
...
...
theano/gof/cc.py
浏览文件 @
e14e9c33
...
...
@@ -12,7 +12,7 @@ from itertools import izip
import
numpy
from
theano.compat
import
PY3
from
theano.compat.six
import
StringIO
from
theano.compat.six
.moves
import
StringIO
,
xrange
from
theano.gof.utils
import
MethodNotDefined
import
theano
...
...
theano/gof/opt.py
浏览文件 @
e14e9c33
...
...
@@ -16,6 +16,7 @@ import numpy
import
theano
from
theano
import
config
from
theano.compat.six.moves
import
reduce
from
theano.gof
import
graph
,
op
,
utils
,
unify
,
toolbox
from
theano.gof.fg
import
InconsistencyError
from
theano.compat
import
deque
...
...
theano/gof/sandbox/equilibrium.py
浏览文件 @
e14e9c33
from
__future__
import
print_function
from
theano.compat.six.moves
import
reduce
if
0
:
class
_EquilibriumOptimizer
(
NavigatorOptimizer
):
...
...
theano/gof/tests/test_destroyhandler.py
浏览文件 @
e14e9c33
...
...
@@ -2,6 +2,7 @@ from __future__ import print_function
import
unittest
from
theano.compat.six.moves
import
xrange
from
theano.gof.type
import
Type
from
theano.gof
import
graph
from
theano.gof.graph
import
Variable
,
Apply
...
...
theano/gof/tests/test_op.py
浏览文件 @
e14e9c33
...
...
@@ -5,6 +5,7 @@ import numpy
import
theano
import
theano.gof.op
as
op
from
theano.compat.six.moves
import
xrange
from
theano.gof.type
import
Type
,
Generic
from
theano.gof.graph
import
Apply
,
Variable
import
theano.tensor
as
T
...
...
theano/gof/tests/test_sched.py
浏览文件 @
e14e9c33
...
...
@@ -5,6 +5,7 @@ import theano
from
theano
import
tensor
from
theano.gof.graph
import
io_toposort
from
theano.compat
import
cmp
from
theano.compat.six.moves
import
xrange
def
test_dependence
():
...
...
theano/gof/tests/test_utils.py
浏览文件 @
e14e9c33
import
theano
from
theano.gof.utils
import
give_variables_names
,
unique
,
remove
from
theano.compat.six.moves
import
xrange
def
test_give_variables_names
():
...
...
theano/gof/tests/test_vm.py
浏览文件 @
e14e9c33
...
...
@@ -10,6 +10,7 @@ import numpy
from
theano
import
function
from
theano.gof
import
vm
from
theano.gof
import
OpWiseCLinker
from
theano.compat.six.moves
import
xrange
from
theano.compile
import
Mode
from
theano
import
tensor
...
...
theano/gof/vm.py
浏览文件 @
e14e9c33
...
...
@@ -16,6 +16,7 @@ from theano.configparser import (config, AddConfigVar,
import
theano.gof.cmodule
from
theano.compat
import
defaultdict
from
theano.compat.six.moves
import
xrange
logger
=
logging
.
getLogger
(
__name__
)
...
...
theano/gradient.py
浏览文件 @
e14e9c33
...
...
@@ -13,6 +13,7 @@ import theano
from
theano
import
gof
from
theano.gof
import
Variable
from
theano.compat
import
OrderedDict
from
theano.compat.six.moves
import
xrange
from
theano.gof.null_type
import
NullType
,
null_type
from
theano.gof.op
import
get_debug_values
from
theano.compile
import
ViewOp
...
...
theano/ifelse.py
浏览文件 @
e14e9c33
...
...
@@ -22,6 +22,7 @@ from theano.tensor import TensorType
from
theano
import
gof
from
theano.gof
import
PureOp
,
Apply
from
theano.compat.six.moves
import
xrange
from
theano.compile
import
optdb
from
theano.tensor
import
opt
from
theano.scan_module.scan_utils
import
find_up
...
...
theano/misc/elemwise_time_test.py
浏览文件 @
e14e9c33
...
...
@@ -7,6 +7,7 @@ import numpy as np
import
theano
import
theano.tensor
as
T
from
theano.compat.six.moves
import
xrange
parser
=
OptionParser
(
usage
=
'
%
prog <options>
\n
Compute time for'
' fast and slow elemwise operations'
)
...
...
theano/misc/gnumpy_utils.py
浏览文件 @
e14e9c33
...
...
@@ -2,6 +2,7 @@
This code can only work if gnumpy and theano are initialized on the
same gpu as theano.
"""
from
theano.compat.six.moves
import
reduce
try
:
import
gnumpy
...
...
theano/misc/hooks/reindent.py
浏览文件 @
e14e9c33
...
...
@@ -45,6 +45,7 @@ __version__ = "1"
import
tokenize
import
os
,
shutil
import
sys
from
theano.compat.six.moves
import
xrange
verbose
=
0
recurse
=
0
...
...
theano/misc/pycuda_example.py
浏览文件 @
e14e9c33
...
...
@@ -23,6 +23,7 @@ TheanoElementwiseKernel.
import
numpy
import
theano
from
theano.compat.six.moves
import
xrange
from
theano.gof
import
Op
,
Apply
,
local_optimizer
,
EquilibriumDB
from
theano.sandbox.cuda
import
GpuElemwise
,
CudaNdarrayType
,
GpuOp
from
theano.sandbox.cuda.basic_ops
import
(
as_cuda_ndarray_variable
,
...
...
theano/misc/strutil.py
浏览文件 @
e14e9c33
import
warnings
from
theano.compat.six.moves
import
xrange
def
render_string
(
string
,
sub
):
...
...
theano/printing.py
浏览文件 @
e14e9c33
...
...
@@ -25,7 +25,7 @@ except ImportError:
import
theano
from
theano
import
gof
from
theano
import
config
from
theano.compat.six
import
StringIO
from
theano.compat.six
.moves
import
StringIO
,
reduce
from
theano.gof
import
Op
,
Apply
from
theano.compile
import
Function
,
debugmode
from
theano.compile.profilemode
import
ProfileMode
...
...
theano/sandbox/cuda/GpuConvGrad3D.py
浏览文件 @
e14e9c33
...
...
@@ -3,6 +3,7 @@ import numpy
import
theano
import
theano.tensor
as
T
from
theano.compat.six.moves
import
xrange
from
theano.gof
import
local_optimizer
from
theano.sandbox.cuda.basic_ops
import
as_cuda_ndarray_variable
from
theano.misc
import
strutil
...
...
theano/sandbox/cuda/GpuConvTransp3D.py
浏览文件 @
e14e9c33
...
...
@@ -5,6 +5,7 @@ import theano.tensor as T
from
theano.misc
import
strutil
import
theano
from
theano.compat.six.moves
import
xrange
from
theano.tensor.nnet.ConvTransp3D
import
ConvTransp3D
from
theano.gof
import
local_optimizer
...
...
theano/sandbox/cuda/basic_ops.py
浏览文件 @
e14e9c33
...
...
@@ -9,7 +9,7 @@ import theano
from
theano
import
gof
,
Type
,
Apply
from
theano
import
tensor
,
scalar
,
config
from
theano.compat.six
import
StringIO
from
theano.compat.six
.moves
import
StringIO
,
xrange
from
theano.gradient
import
grad_undefined
from
theano.scalar
import
Scalar
...
...
theano/sandbox/cuda/blas.py
浏览文件 @
e14e9c33
...
...
@@ -7,7 +7,7 @@ _logger = logging.getLogger(__name__)
import
theano
from
theano
import
Apply
from
theano
import
tensor
from
theano.compat.six
import
StringIO
from
theano.compat.six
.moves
import
StringIO
,
reduce
from
theano.sandbox.cuda.type
import
CudaNdarrayType
from
theano.sandbox.cuda
import
GpuOp
from
theano.sandbox.cuda.basic_ops
import
(
as_cuda_ndarray_variable
,
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
e14e9c33
...
...
@@ -15,6 +15,7 @@ from theano import scalar as scal
from
theano
import
config
,
tensor
,
gof
import
theano.ifelse
from
theano.compat.six.moves
import
reduce
from
theano.compile
import
optdb
from
theano.gof
import
(
local_optimizer
,
EquilibriumDB
,
ProxyDB
,
Optimizer
,
toolbox
)
...
...
theano/sandbox/cuda/tests/test_opt.py
浏览文件 @
e14e9c33
...
...
@@ -9,6 +9,7 @@ from nose.plugins.skip import SkipTest
from
nose.tools
import
assert_raises
import
theano
from
theano.compat.six.moves
import
reduce
from
theano.compile.pfunc
import
pfunc
from
theano
import
config
,
tensor
import
theano.tensor.tests.test_nlinalg
...
...
theano/sandbox/gpuarray/conv.py
浏览文件 @
e14e9c33
...
...
@@ -3,6 +3,7 @@ import os
import
theano
from
theano
import
config
,
gof
from
theano.compat.six.moves
import
reduce
from
.comp
import
NVCC_compiler
from
.type
import
GpuArrayType
from
.basic_ops
import
as_gpuarray_variable
...
...
theano/tensor/blas.py
浏览文件 @
e14e9c33
...
...
@@ -140,6 +140,7 @@ except ImportError:
pass
from
theano.configparser
import
config
,
AddConfigVar
,
StrParam
from
theano.compat.six.moves
import
reduce
from
theano.gof
import
(
utils
,
Op
,
view_roots
,
local_optimizer
,
Optimizer
,
InconsistencyError
,
toolbox
,
SequenceDB
,
...
...
theano/tensor/opt.py
浏览文件 @
e14e9c33
...
...
@@ -21,6 +21,7 @@ import numpy as N # guys... please don't do this in the library :(
import
theano
from
theano
import
gof
from
theano.compat.six.moves
import
reduce
from
theano.gof
import
opt
,
InconsistencyError
,
TopoOptimizer
,
graph
from
theano.gof
import
Variable
,
Constant
from
theano.compat
import
maxsize
...
...
theano/tensor/raw_random.py
浏览文件 @
e14e9c33
...
...
@@ -8,6 +8,7 @@ import numpy
# local imports
import
theano
from
theano.compat.six.moves
import
reduce
from
theano
import
tensor
from
theano.tensor
import
opt
from
theano
import
gof
...
...
theano/tensor/tests/test_basic.py
浏览文件 @
e14e9c33
...
...
@@ -20,7 +20,7 @@ from numpy.testing.noseclasses import KnownFailureTest
from
distutils.version
import
LooseVersion
import
theano
from
theano.compat
import
PY3
,
exc_message
,
operator_div
from
theano.compat
import
PY3
,
exc_message
,
operator_div
,
reduce
from
theano.compat.six
import
StringIO
from
theano
import
compile
,
config
,
function
,
gof
,
tensor
,
shared
from
theano.compile
import
DeepCopyOp
...
...
theano/tests/test_record.py
浏览文件 @
e14e9c33
from
theano.tests.record
import
*
from
theano
import
function
from
theano.compat.six.moves
import
xrange
from
theano.tensor
import
iscalar
import
cStringIO
...
...
theano/tests/test_tutorial.py
浏览文件 @
e14e9c33
...
...
@@ -15,6 +15,7 @@ import theano
import
theano.tensor
as
T
from
theano
import
function
,
compat
from
theano.compat.six.moves
import
xrange
from
theano
import
config
from
theano.tests
import
unittest_tools
as
utt
from
theano.sandbox.rng_mrg
import
MRG_RandomStreams
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论