Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
de4ddf3b
提交
de4ddf3b
authored
7月 15, 2011
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
import clean up.
上级
23dbd418
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
27 行删除
+9
-27
__init__.py
theano/scan_module/__init__.py
+0
-1
scan.py
theano/scan_module/scan.py
+2
-4
scan_op.py
theano/scan_module/scan_op.py
+7
-9
scan_utils.py
theano/scan_module/scan_utils.py
+0
-13
没有找到文件。
theano/scan_module/__init__.py
浏览文件 @
de4ddf3b
...
...
@@ -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
...
...
theano/scan_module/scan.py
浏览文件 @
de4ddf3b
...
...
@@ -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'
)
...
...
theano/scan_module/scan_op.py
浏览文件 @
de4ddf3b
...
...
@@ -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
a
ll
from
theano.gof.python25
import
a
ny
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
):
#
...
...
theano/scan_module/scan_utils.py
浏览文件 @
de4ddf3b
...
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论