Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e311d33a
提交
e311d33a
authored
6月 16, 2014
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix more typos following code review.
上级
4e7de4bb
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
8 行删除
+13
-8
basic.py
theano/sparse/basic.py
+1
-1
basic.py
theano/typed_list/basic.py
+12
-7
没有找到文件。
theano/sparse/basic.py
浏览文件 @
e311d33a
...
@@ -1766,7 +1766,7 @@ pattern.
...
@@ -1766,7 +1766,7 @@ pattern.
:param x: Sparse matrix.
:param x: Sparse matrix.
:param y: Sparse matrix.
:param y: Sparse matrix.
:return: The sum of the two sparse matri
x
element wise.
:return: The sum of the two sparse matri
ces
element wise.
:note: `x` and `y` are assumed to have the same
:note: `x` and `y` are assumed to have the same
sparsity pattern.
sparsity pattern.
...
...
theano/typed_list/basic.py
浏览文件 @
e311d33a
...
@@ -99,7 +99,7 @@ class GetItem(Op):
...
@@ -99,7 +99,7 @@ class GetItem(Op):
getitem
=
GetItem
()
getitem
=
GetItem
()
"""
"""
Get specified slice of a typed list.
.
Get specified slice of a typed list.
:param x: type type list.
:param x: type type list.
:param index: the index of the value to return from `x`.
:param index: the index of the value to return from `x`.
...
@@ -341,13 +341,15 @@ class Remove(Op):
...
@@ -341,13 +341,15 @@ class Remove(Op):
return
self
.
__class__
.
__name__
return
self
.
__class__
.
__name__
remove
=
Remove
()
remove
=
Remove
()
"""
"""Remove an element from a typed list.
Remove an element from a typed list.
:param x: the typed list to be changed.
:param x: the typed list to be changed.
:param toRemove: an element to be removed from the typed list.
:param toRemove: an element to be removed from the typed list.
We remove only the first instance.
We only remove the first instance.
It work with ndarray.
:note: Python implementation of remove don't work when we want to
remove an ndarray from a list. This implementation work in that
case.
"""
"""
...
@@ -477,8 +479,11 @@ Count the number of time an element is in the typed list.
...
@@ -477,8 +479,11 @@ Count the number of time an element is in the typed list.
:param x: The typed list to look into.
:param x: The typed list to look into.
:param elem: The element we want to count in list.
:param elem: The element we want to count in list.
The element must evaluate to equal.
The element are compared with equals.
They don't need to be the same instance. Work with ndrray.
:note: Python implementation of count don't work when we want to
count an ndarray from a list. This implementation work in that
case.
"""
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论