Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e1b2da30
提交
e1b2da30
authored
10月 02, 2008
作者:
Olivier Breuleux
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
moved a lot of functionality in the theano.tensor submodule
上级
499b7575
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
21 行增加
和
25 行删除
+21
-25
__init__.py
__init__.py
+0
-3
_test_basic.py
tensor/_test_basic.py
+0
-0
_test_elemwise.py
tensor/_test_elemwise.py
+0
-0
_test_opt.py
tensor/_test_opt.py
+0
-0
_test_raw_random.py
tensor/_test_raw_random.py
+0
-0
basic.py
tensor/basic.py
+6
-7
blas.py
tensor/blas.py
+2
-2
elemwise.py
tensor/elemwise.py
+5
-5
elemwise_cgen.py
tensor/elemwise_cgen.py
+0
-0
opt.py
tensor/opt.py
+5
-5
raw_random.py
tensor/raw_random.py
+3
-3
没有找到文件。
__init__.py
浏览文件 @
e1b2da30
...
@@ -44,12 +44,9 @@ from compile import \
...
@@ -44,12 +44,9 @@ from compile import \
FunctionMaker
,
function
,
OpFromGraph
#, eval_outputs, fast_compute
FunctionMaker
,
function
,
OpFromGraph
#, eval_outputs, fast_compute
import
tensor
import
tensor
import
tensor_random
import
scalar
import
scalar
import
sparse
import
sparse
import
gradient
import
gradient
import
elemwise
import
tensor_opt
## import scalar_opt
## import scalar_opt
...
...
_test_tensor
.py
→
tensor/_test_basic
.py
浏览文件 @
e1b2da30
File moved
_test_elemwise.py
→
tensor/
_test_elemwise.py
浏览文件 @
e1b2da30
File moved
_test_tensor
_opt.py
→
tensor/_test
_opt.py
浏览文件 @
e1b2da30
File moved
_test_tensor
_random.py
→
tensor/_test_raw
_random.py
浏览文件 @
e1b2da30
File moved
tensor.py
→
tensor
/basic
.py
浏览文件 @
e1b2da30
...
@@ -8,20 +8,19 @@ import inspect
...
@@ -8,20 +8,19 @@ import inspect
import
functools
import
functools
import
numpy
import
numpy
from
copy
import
copy
from
copy
import
copy
from
gof
import
Result
,
Op
,
utils
,
AbstractFunctionError
,
Type
,
Constant
,
Apply
,
Value
from
..
import
gof
import
gof
from
..gof
import
Result
,
Op
,
utils
,
AbstractFunctionError
,
Type
,
Constant
,
Apply
,
Value
import
blas
# for gemm, dot
import
blas
# for gemm, dot
import
gradient
from
..
import
gradient
import
elemwise
import
elemwise
import
scalar
as
scal
from
..
import
scalar
as
scal
from
gof.python25
import
partial
from
..
gof.python25
import
partial
import
compile
from
..
import
compile
### set up the external interface
### set up the external interface
...
...
blas.py
→
tensor/
blas.py
浏览文件 @
e1b2da30
import
os
,
sys
import
os
,
sys
import
scipy.weave
as
weave
import
scipy.weave
as
weave
import
gof.
utils
from
..gof
import
utils
"""
"""
...
@@ -796,7 +796,7 @@ def blas_proto():
...
@@ -796,7 +796,7 @@ def blas_proto():
}
}
"""
"""
@
gof.
utils.memoize
@utils.memoize
def
ldflags
():
def
ldflags
():
"""Return a list of libraries against which an Op's object file should be
"""Return a list of libraries against which an Op's object file should be
linked to benefit from a BLAS implementation.
linked to benefit from a BLAS implementation.
...
...
elemwise.py
→
tensor/
elemwise.py
浏览文件 @
e1b2da30
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
import
elemwise_cgen
as
cgen
import
elemwise_cgen
as
cgen
import
numpy
import
numpy
from
gof
import
Op
,
Apply
from
..
import
gof
import
scalar
from
..gof
import
Op
,
Apply
from
scalar
import
S
calar
from
..
import
s
calar
import
gof
from
..scalar
import
Scalar
from
gof.python25
import
all
from
..
gof.python25
import
all
from
copy
import
copy
from
copy
import
copy
...
...
elemwise_cgen.py
→
tensor/
elemwise_cgen.py
浏览文件 @
e1b2da30
File moved
tensor
_
opt.py
→
tensor
/
opt.py
浏览文件 @
e1b2da30
...
@@ -3,16 +3,16 @@
...
@@ -3,16 +3,16 @@
# TODO: 0*x -> 0
# TODO: 0*x -> 0
import
gof
from
..
import
gof
from
gof
import
opt
from
..
gof
import
opt
from
elemwise
import
Elemwise
,
DimShuffle
from
elemwise
import
Elemwise
,
DimShuffle
import
scalar
from
..
import
scalar
import
tensor
as
T
import
basic
as
T
import
numpy
as
N
import
numpy
as
N
import
operator
import
operator
import
itertools
import
itertools
import
sys
import
sys
import
compile
#to register the optimizer built by this file
from
..
import
compile
#to register the optimizer built by this file
# Utilities
# Utilities
...
...
tensor_random.py
→
tensor
/raw
_random.py
浏览文件 @
e1b2da30
"""Random number generation for Theano graphs."""
"""Random number generation for Theano graphs."""
import
gof
from
..
import
gof
import
tensor
import
basic
as
tensor
import
numpy
import
numpy
import
functools
import
functools
from
compile
import
SymbolicInputKit
,
SymbolicInput
from
..
compile
import
SymbolicInputKit
,
SymbolicInput
from
copy
import
copy
from
copy
import
copy
class
RandomFunction
(
gof
.
Op
):
class
RandomFunction
(
gof
.
Op
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论