Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
1efb1539
提交
1efb1539
authored
4月 11, 2016
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4335 from fvisin/fix_elemwise
Check RST files in '/theano/doc/' to follow numpy's docstring + Fix elemwise
上级
2034dfb8
bf053fca
全部展开
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
38 行增加
和
43 行删除
+38
-43
dev_start_guide.txt
doc/dev_start_guide.txt
+0
-0
extending_theano.txt
doc/extending/extending_theano.txt
+5
-36
elemwise.txt
doc/library/tensor/elemwise.txt
+15
-0
index.txt
doc/library/tensor/index.txt
+1
-0
doubleop.py
theano/misc/doubleop.py
+17
-7
elemwise.py
theano/tensor/elemwise.py
+0
-0
没有找到文件。
doc/dev_start_guide.txt
浏览文件 @
1efb1539
差异被折叠。
点击展开。
doc/extending/extending_theano.txt
浏览文件 @
1efb1539
...
@@ -875,43 +875,12 @@ Modify and execute to compute: numpy.add and numpy.subtract.
...
@@ -875,43 +875,12 @@ Modify and execute to compute: numpy.add and numpy.subtract.
Modify and execute the example to return two outputs: x + y
Modify and execute the example to return two outputs: x + y
and x - y.
and x - y.
.. _Documentation:
Documentation
Documentation and Coding Style
-------------
------------------------------
Please always respect the :ref:`quality_contributions` or your contribution
See :ref:`metadocumentation`, for some information on how to generate
will not be accepted.
the documentation.
Here is an example how to add docstring to a class.
.. testcode:: python
import theano
class DoubleOp(theano.Op):
""" Double each element of a tensor.
:param x: input tensor.
:return: a tensor of the same shape and dtype as the input with all
values doubled.
:note:
this is a test note
:seealso:
You can use the elemwise op to replace this example.
Just execute `x * 2` with x being a Theano variable.
.. versionadded:: 0.6
"""
This is how it will show up for files that we auto-list in the library
documentation:
.. automodule:: theano.misc.doubleop
:members:
NanGuardMode and AllocEmpty
NanGuardMode and AllocEmpty
---------------------------
---------------------------
...
...
doc/library/tensor/elemwise.txt
0 → 100644
浏览文件 @
1efb1539
===================================================================
:mod:`tensor.elemwise` -- Tensor Elemwise
===================================================================
.. testsetup::
from theano.tensor.elemwise import *
.. module:: tensor.elemwise
:platform: Unix, Windows
:synopsis: Tensor Elemwise
.. moduleauthor:: LISA
.. automodule:: theano.tensor.elemwise
:members:
doc/library/tensor/index.txt
浏览文件 @
1efb1539
...
@@ -23,6 +23,7 @@ They are grouped into the following sections:
...
@@ -23,6 +23,7 @@ They are grouped into the following sections:
shared_randomstreams
shared_randomstreams
signal/index
signal/index
utils
utils
elemwise
extra_ops
extra_ops
io
io
opt
opt
...
...
theano/misc/doubleop.py
浏览文件 @
1efb1539
...
@@ -5,19 +5,29 @@ import theano
...
@@ -5,19 +5,29 @@ import theano
class
DoubleOp
(
theano
.
Op
):
class
DoubleOp
(
theano
.
Op
):
""" Double each element of a tensor.
"""
Double each element of a tensor.
:param x: input tensor.
Parameters
----------
x : tensor
Input tensor
:return: a tensor of the same shape and dtype as the input with all
Returns
-------
tensor
a tensor of the same shape and dtype as the input with all
values doubled.
values doubled.
:note:
Notes
-----
this is a test note
this is a test note
:seealso:
See Also
You can use the elemwise op to replace this example.
--------
Just execute `x * 2` with x being a Theano variable.
:class:`~theano.tensor.elemwise.Elemwise` : You can use this to replace
this example. Just execute `x * 2` with x being a Theano variable.
.. versionadded:: 0.6
.. versionadded:: 0.6
"""
"""
...
...
theano/tensor/elemwise.py
浏览文件 @
1efb1539
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论