Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f649149a
提交
f649149a
authored
1月 29, 2016
作者:
Francesco Visin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix broken links in docs
上级
1020d274
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
7 行删除
+11
-7
index.txt
doc/cifarSC2011/index.txt
+1
-1
index.txt
doc/crei2013/index.txt
+1
-1
extending_theano.txt
doc/extending/extending_theano.txt
+9
-5
没有找到文件。
doc/cifarSC2011/index.txt
浏览文件 @
f649149a
...
...
@@ -66,7 +66,7 @@ from gurus on hand if you get stuck.
introduction
theano
advanced_theano
/
tutorial
/extending_theano
/
extending
/extending_theano
pyCUDA
gpundarray
doc/crei2013/index.txt
浏览文件 @
f649149a
...
...
@@ -69,4 +69,4 @@ from gurus on hand if you get stuck.
theano
advanced_theano
gpundarray
/
tutorial
/extending_theano
/
extending
/extending_theano
doc/extending/extending_theano.txt
浏览文件 @
f649149a
.. _extending_theano:
Creating a new Op: Python implementation
========================================
...
...
@@ -16,6 +18,7 @@ Ops, Types, and Optimizations.
.. These first few pages will walk you through the definition of a new :ref:`type`,
.. ``double``, and a basic arithmetic :ref:`operations <op>` on that Type.
As an illustration, this tutorial shows how to write a simple Python-based
:ref:`operations <op>` which performs operations on
:ref:`type`, ``double<Double>``.
...
...
@@ -68,7 +71,7 @@ implement to make a new op. It does not provide extensive coverage of all the
possibilities you may encounter or need. For that refer to
:ref:`op_contract`.
.. testcode::
.. testcode::
python
import theano
...
...
@@ -402,6 +405,7 @@ indirectly as the first element of single-element lists. If ``doubleOp1`` had
a second output, it would be stored in ``output_storage[1][0]``.
.. jpt: DOn't understand the following
In some execution modes, the output storage might contain the return value of
a previous call. That old value can be reused to avoid memory re-allocation,
but it must not influence the semantics of the Op output.
...
...
@@ -708,10 +712,10 @@ The following are particularly useful for development purposes since
they call for particular classes or even for particular tests:
* ``theano-nose test_file.py:test_DoubleRop``: Run every test found inside the
class *test_DoubleRop*.
class *test_DoubleRop*.
* ``theano-nose test_file.py:test_DoubleRop.test_double_op``: Run only the test
*test_double_op* in the class *test_DoubleRop*.
*test_double_op* in the class *test_DoubleRop*.
Help with the use and functionalities of ``theano-nose`` may be
obtained by running it with the command line parameter ``--help
...
...
@@ -800,7 +804,7 @@ implementation.
It takes an optional :func:`infer_shape` parameter that must have this
signature:
.. code-block:: python
.. code-block:: python
def infer_shape(node, input_shapes):
# ...
...
...
@@ -880,7 +884,7 @@ the documentation.
Here is an example how to add docstring to a class.
.. testcode::
.. testcode::
python
import theano
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论