Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
952b738b
提交
952b738b
authored
3月 19, 2009
作者:
James Bergstra
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
changes to documentation
上级
90cbc85f
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
14 行增加
和
59 行删除
+14
-59
index.txt
doc/advanced/index.txt
+0
-9
op.txt
doc/advanced_tutorial/ex1/op.txt
+5
-0
type.txt
doc/advanced_tutorial/ex1/type.txt
+3
-3
index.txt
doc/advanced_tutorial/index.txt
+1
-2
inplace.txt
doc/advanced_tutorial/inplace.txt
+0
-8
optimization.txt
doc/advanced_tutorial/optimization.txt
+0
-4
tips.txt
doc/advanced_tutorial/tips.txt
+0
-5
wrapup.txt
doc/advanced_tutorial/wrapup.txt
+0
-7
examples.txt
doc/basic_tutorial/examples.txt
+2
-2
index.txt
doc/basic_tutorial/index.txt
+0
-1
module.txt
doc/basic_tutorial/module.txt
+0
-7
wrapup.txt
doc/basic_tutorial/wrapup.txt
+0
-8
dev_start_guide.txt
doc/internal/dev_start_guide.txt
+1
-3
gradient.txt
doc/sandbox/gradient.txt
+0
-0
graph.py
theano/gof/graph.py
+2
-0
没有找到文件。
doc/advanced/index.txt
浏览文件 @
952b738b
...
...
@@ -18,12 +18,3 @@ Structure
ccodegen
function
module
Concepts
========
.. toctree::
:maxdepth: 2
gradient
doc/advanced_tutorial/ex1/op.txt
浏览文件 @
952b738b
...
...
@@ -63,6 +63,11 @@ An Op is any object which defines the following methods:
- This function must be determined by the inputs. That is to say, if it is
evaluated once on inputs A and returned B, then if ever inputs C, equal to
A, are presented again, then outputs equal to B must be returned again.
- You must be careful about aliasing outputs to inputs, and making
modifications to any of the inputs. See `Views and inplace operations`_
before writing a ``perform`` implementation that does either of these
things.
- **__eq__(self, other)**
...
...
doc/advanced_tutorial/ex1/type.txt
浏览文件 @
952b738b
...
...
@@ -152,7 +152,7 @@ so if ``x`` is an ``int`` it we will return an equivalent ``float``.
.. code-block:: python
def values_eq_approx(x, y, tolerance=1e-4):
return abs(x - y) / (
x + y
) < tolerance
return abs(x - y) / (
abs(x) + abs(y)
) < tolerance
The second method we define is ``values_eq_approx``. This method
allows approximate comparison between two values respecting our Type's
...
...
@@ -204,7 +204,7 @@ and define ``filter`` and ``values_eq_approx`` in the subclass:
return float(x)
def values_eq_approx(self, x, y, tolerance=1e-4):
return abs(x - y) / (
x + y
) < tolerance
return abs(x - y) / (
abs(x) + abs(y)
) < tolerance
double = Double()
...
...
@@ -291,7 +291,7 @@ Final version
return float(x)
def values_eq_approx(self, x, y, tolerance=1e-4):
return abs(x - y) / (
x + y
) < tolerance
return abs(x - y) / (
abs(x) + abs(y)
) < tolerance
def __str__(self):
return "double"
...
...
doc/advanced_tutorial/index.txt
浏览文件 @
952b738b
...
...
@@ -30,12 +30,11 @@ concepts at work here.
graphstructures
ex1/type
ex1/op
inplace
ex1/ctype
ex1/cop
inplace
optimization
tips
wrapup
...
...
doc/advanced_tutorial/inplace.txt
浏览文件 @
952b738b
...
...
@@ -189,11 +189,3 @@ input(s)'s memory). From there, go to the previous section.
certainly lead to erroneous computations and be a headache to
debug.
**Next:** `Graph optimization`_
.. _Graph optimization: optimization.html
doc/advanced_tutorial/optimization.txt
浏览文件 @
952b738b
...
...
@@ -276,7 +276,3 @@ Inplace optimizations
**Next:** `Tips`_
.. _Tips: tips.html
doc/advanced_tutorial/tips.txt
浏览文件 @
952b738b
...
...
@@ -56,8 +56,3 @@ common mistakes.
WRITEME
**Next:** `Wrapping up`_
.. _Wrapping up: wrapup.html
doc/advanced_tutorial/wrapup.txt
deleted
100644 → 0
浏览文件 @
90cbc85f
===========
Wrapping up
===========
WRITEME
doc/basic_tutorial/examples.txt
浏览文件 @
952b738b
...
...
@@ -136,7 +136,7 @@ with respect to the second. In this way, Theano can be used for
.. note::
In general, t
he result of ``T.grad`` has the same dimensions as the
T
he result of ``T.grad`` has the same dimensions as the
second argument. This is exactly like the first derivative if the
first argument is a scalar or a tensor of size 1 but not if it is
larger. For more information on the semantics when the first
...
...
@@ -212,7 +212,7 @@ of the internal ``state`` will be replaced by the value computed as
``new_state``. In this case, the state will be replaced by the result
of incrementing it by ``inc``.
We recommend (insist?) that internl state arguments occur after any
We recommend (insist?) that intern
a
l state arguments occur after any
plain arguments and arguments with default values.
There is no limit to how many states you can have. You can add an
...
...
doc/basic_tutorial/index.txt
浏览文件 @
952b738b
...
...
@@ -34,4 +34,3 @@ Now we're ready for the tour:
module_vs_op
randomstreams
tools
wrapup
doc/basic_tutorial/module.txt
浏览文件 @
952b738b
...
...
@@ -269,11 +269,4 @@ WRITEME
**Next:** `Tools`_
.. _Tools: tools.html
doc/basic_tutorial/wrapup.txt
deleted
100644 → 0
浏览文件 @
90cbc85f
===========
Wrapping up
===========
WRITEME
doc/internal/dev_start_guide.txt
浏览文件 @
952b738b
...
...
@@ -6,8 +6,6 @@ Developer Start Guide
=====================
- Learn about the basics of using mercurial.
- Learn some `non-basic python`_ to understand what's going on in some of the
tricker files (like tensor.py).
...
...
@@ -44,7 +42,7 @@ As a developer, you should clone this repository like this:
Nightly test
============
Their is nightly build done. The output is at: http://lgcm/nightly_build/do_nightly_build.txt
WRITEME
Setting up your environment
===========================
...
...
doc/
advanced
/gradient.txt
→
doc/
sandbox
/gradient.txt
浏览文件 @
952b738b
File moved
theano/gof/graph.py
浏览文件 @
952b738b
...
...
@@ -345,6 +345,8 @@ class Value(Result):
raise
ValueError
(
"Value instances cannot have an owner."
)
owner
=
property
(
lambda
self
:
None
,
__set_owner
)
# index is not defined, because the `owner` attribute must necessarily be None
class
Constant
(
Value
):
"""
A :term:`Constant` is a `Value` that cannot be changed at runtime.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论