Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
fe380388
提交
fe380388
authored
3月 30, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use relative import for things that come from this module.
上级
6a732dd7
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
44 行增加
和
50 行删除
+44
-50
__init__.py
theano/sandbox/gpuarray/__init__.py
+2
-2
basic_ops.py
theano/sandbox/gpuarray/basic_ops.py
+1
-1
blas.py
theano/sandbox/gpuarray/blas.py
+1
-1
conv.py
theano/sandbox/gpuarray/conv.py
+3
-3
elemwise.py
theano/sandbox/gpuarray/elemwise.py
+5
-5
kernel_codegen.py
theano/sandbox/gpuarray/kernel_codegen.py
+0
-1
neighbours.py
theano/sandbox/gpuarray/neighbours.py
+5
-6
nnet.py
theano/sandbox/gpuarray/nnet.py
+6
-7
opt.py
theano/sandbox/gpuarray/opt.py
+17
-20
subtensor.py
theano/sandbox/gpuarray/subtensor.py
+4
-4
没有找到文件。
theano/sandbox/gpuarray/__init__.py
浏览文件 @
fe380388
...
...
@@ -26,9 +26,9 @@ AddConfigVar('gpuarray.sync',
in_c_key
=
True
)
# This is for documentation not to depend on the availability of pygpu
from
type
import
(
GpuArrayType
,
GpuArrayVariable
,
GpuArrayConstant
,
from
.
type
import
(
GpuArrayType
,
GpuArrayVariable
,
GpuArrayConstant
,
GpuArraySharedVariable
,
gpuarray_shared_constructor
)
import
opt
from
.
import
opt
def
init_dev
(
dev
):
...
...
theano/sandbox/gpuarray/basic_ops.py
浏览文件 @
fe380388
...
...
@@ -20,7 +20,7 @@ try:
except
ImportError
:
pass
from
type
import
GpuArrayType
from
.
type
import
GpuArrayType
def
as_gpuarray_variable
(
x
):
...
...
theano/sandbox/gpuarray/blas.py
浏览文件 @
fe380388
from
theano
import
Op
,
Apply
,
config
from
theano.tensor.blas
import
Dot22
,
Gemv
,
Gemm
,
Ger
from
theano.sandbox.gpuarray.basic_ops
import
(
HideC
,
as_gpuarray_variable
)
from
.basic_ops
import
HideC
,
as_gpuarray_variable
try
:
import
pygpu
...
...
theano/sandbox/gpuarray/conv.py
浏览文件 @
fe380388
...
...
@@ -3,9 +3,9 @@ import os
import
theano
from
theano
import
config
,
gof
from
theano.sandbox.gpuarray
.comp
import
NVCC_compiler
from
theano.sandbox.gpuarray
.type
import
GpuArrayType
from
theano.sandbox.gpuarray
.basic_ops
import
as_gpuarray_variable
from
.comp
import
NVCC_compiler
from
.type
import
GpuArrayType
from
.basic_ops
import
as_gpuarray_variable
class
GpuConv
(
gof
.
Op
):
...
...
theano/sandbox/gpuarray/elemwise.py
浏览文件 @
fe380388
...
...
@@ -7,9 +7,9 @@ import numpy
import
theano
from
theano
import
Apply
,
scalar
,
config
from
theano
import
scalar
as
scal
from
theano.gof.utils
import
MethodNotDefined
from
theano.scalar
import
Scalar
from
theano.tensor.elemwise
import
(
Elemwise
,
DimShuffle
,
CAReduceDtype
)
from
theano.sandbox.gpuarray.comp
import
NVCC_compiler
try
:
import
pygpu
...
...
@@ -21,11 +21,11 @@ try:
except
ImportError
:
pass
from
theano.sandbox.gpuarray.basic_ops
import
(
as_gpuarray_variable
,
HideC
,
GpuKernelBase
,
Kernel
)
from
theano.sandbox.gpuarray.type
import
GpuArrayType
from
.basic_ops
import
(
as_gpuarray_variable
,
HideC
,
GpuKernelBase
,
Kernel
)
from
.comp
import
NVCC_compiler
from
.type
import
GpuArrayType
from
theano.gof.utils
import
MethodNotDefined
def
_is_scalar
(
v
):
...
...
theano/sandbox/gpuarray/kernel_codegen.py
浏览文件 @
fe380388
""" Helper routines for generating gpu kernels for nvcc.
"""
def
nvcc_kernel
(
name
,
params
,
body
):
"""Return the c code of a kernel function.
...
...
theano/sandbox/gpuarray/neighbours.py
浏览文件 @
fe380388
...
...
@@ -11,12 +11,11 @@ try:
except
ImportError
:
pass
from
theano.sandbox.gpuarray.basic_ops
import
(
as_gpuarray_variable
,
host_from_gpu
,
gpu_from_host
)
from
theano.sandbox.gpuarray.opt
import
register_opt
as
register_gpu_opt
from
theano.sandbox.gpuarray.opt
import
op_lifter
as
op_lifter
from
theano.sandbox.gpuarray.type
import
GpuArrayType
from
theano.sandbox.gpuarray.comp
import
NVCC_compiler
from
.basic_ops
import
(
as_gpuarray_variable
,
host_from_gpu
,
gpu_from_host
)
from
.opt
import
register_opt
as
register_gpu_opt
,
op_lifter
from
.type
import
GpuArrayType
from
.comp
import
NVCC_compiler
class
GpuImages2Neibs
(
Images2Neibs
,
Op
):
...
...
theano/sandbox/gpuarray/nnet.py
浏览文件 @
fe380388
...
...
@@ -2,8 +2,6 @@ import numpy
from
theano
import
Op
,
Apply
,
config
from
theano.compat.six
import
StringIO
from
theano.sandbox.gpuarray.comp
import
NVCC_compiler
try
:
import
pygpu
...
...
@@ -11,11 +9,12 @@ try:
except
ImportError
:
pass
from
theano.sandbox.gpuarray.basic_ops
import
as_gpuarray_variable
from
theano.sandbox.gpuarray.type
import
GpuArrayType
from
theano.sandbox.gpuarray.kernel_codegen
import
(
nvcc_kernel
,
inline_softmax
,
inline_softmax_fixed_shared
)
from
.basic_ops
import
as_gpuarray_variable
from
.comp
import
NVCC_compiler
from
.type
import
GpuArrayType
from
.kernel_codegen
import
(
nvcc_kernel
,
inline_softmax
,
inline_softmax_fixed_shared
)
class
GpuCrossentropySoftmaxArgmax1HotWithBias
(
Op
):
...
...
theano/sandbox/gpuarray/opt.py
浏览文件 @
fe380388
...
...
@@ -18,26 +18,23 @@ from theano.scan_module import scan_utils, scan_op, scan_opt
from
theano.compat.python2x
import
all
,
any
from
theano.tensor.nnet.conv
import
ConvOp
from
theano.sandbox.gpuarray.type
import
GpuArrayType
from
theano.sandbox.gpuarray.basic_ops
import
(
host_from_gpu
,
gpu_from_host
,
HostFromGpu
,
GpuFromHost
,
GpuSplit
,
gpu_alloc
,
GpuAlloc
,
GpuReshape
,
GpuEye
,
gpu_join
,
GpuJoin
,
)
from
theano.sandbox.gpuarray.blas
import
gpu_dot22
,
GpuGemv
,
GpuGemm
,
GpuGer
from
theano.sandbox.gpuarray.conv
import
GpuConv
from
theano.sandbox.gpuarray.nnet
import
(
GpuCrossentropySoftmaxArgmax1HotWithBias
,
GpuCrossentropySoftmax1HotWithBiasDx
,
GpuSoftmaxWithBias
,
GpuSoftmax
)
from
theano.sandbox.gpuarray.elemwise
import
(
GpuElemwise
,
_is_scalar
,
GpuDimShuffle
,
GpuCAReduceCuda
,
GpuCAReduceCPY
)
from
theano.sandbox.gpuarray.subtensor
import
(
GpuIncSubtensor
,
GpuSubtensor
,
GpuAdvancedIncSubtensor1
,
GpuAdvancedIncSubtensor1_dev20
)
from
theano.sandbox.gpuarray.type
import
GpuArrayConstant
from
.type
import
GpuArrayType
,
GpuArrayConstant
from
.basic_ops
import
(
host_from_gpu
,
gpu_from_host
,
HostFromGpu
,
GpuFromHost
,
GpuSplit
,
gpu_alloc
,
GpuAlloc
,
GpuReshape
,
GpuEye
,
gpu_join
,
GpuJoin
)
from
.blas
import
gpu_dot22
,
GpuGemv
,
GpuGemm
,
GpuGer
from
.conv
import
GpuConv
from
.nnet
import
(
GpuCrossentropySoftmaxArgmax1HotWithBias
,
GpuCrossentropySoftmax1HotWithBiasDx
,
GpuSoftmaxWithBias
,
GpuSoftmax
)
from
.elemwise
import
(
GpuElemwise
,
_is_scalar
,
GpuDimShuffle
,
GpuCAReduceCuda
,
GpuCAReduceCPY
)
from
.subtensor
import
(
GpuIncSubtensor
,
GpuSubtensor
,
GpuAdvancedIncSubtensor1
,
GpuAdvancedIncSubtensor1_dev20
)
gpu_optimizer
=
EquilibriumDB
()
gpu_cut_copies
=
EquilibriumDB
()
...
...
theano/sandbox/gpuarray/subtensor.py
浏览文件 @
fe380388
...
...
@@ -14,10 +14,10 @@ try:
except
ImportError
:
pass
from
theano.sandbox.gpuarray
.type
import
GpuArrayType
from
theano.sandbox.gpuarray
.basic_ops
import
as_gpuarray_variable
,
HideC
from
theano.sandbox.gpuarray
.elemwise
import
GpuElemwise
from
theano.sandbox.gpuarray
.comp
import
NVCC_compiler
from
.type
import
GpuArrayType
from
.basic_ops
import
as_gpuarray_variable
,
HideC
from
.elemwise
import
GpuElemwise
from
.comp
import
NVCC_compiler
class
GpuSubtensor
(
HideC
,
Subtensor
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论