Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
1800ca6a
提交
1800ca6a
authored
3月 31, 2009
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
theano -> Theano
上级
bfc3a357
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
graphstructures.txt
doc/advanced_tutorial/graphstructures.txt
+6
-6
inplace.txt
doc/advanced_tutorial/inplace.txt
+1
-1
type.txt
doc/advanced_tutorial/type.txt
+2
-2
mechanism2.py
doc/examples/module/mechanism2.py
+1
-1
glossary.txt
doc/glossary.txt
+2
-2
没有找到文件。
doc/advanced_tutorial/graphstructures.txt
浏览文件 @
1800ca6a
...
...
@@ -68,12 +68,12 @@ This is what you would normally type:
.. code-block:: python
from theano.tensor import *
# create 3 Variables with owner = None
x = matrix('x')
y = matrix('y')
z = matrix('z')
# create 2 Variables (one for 'e', one intermediate for y*z)
# create 2 Apply instances (one for '+', one for '*')
e = x + y * z
...
...
@@ -86,7 +86,7 @@ This is what you would type to build the graph explicitly:
.. code-block:: python
from theano.tensor import *
# Instantiate a type that represents a matrix of doubles
float64_matrix = TensorType(dtype = 'float64', # double
broadcastable = (False, False)) # matrix
...
...
@@ -129,7 +129,7 @@ Note how the call to ``Apply`` modifies the ``owner`` and ``index``
fields of the :ref:`Variables <variable>` passed as outputs to point to
itself and the rank they occupy in the output list. This whole
machinery builds a DAG (Directed Acyclic Graph) representing the
computation, a graph that
t
heano can compile and optimize.
computation, a graph that
T
heano can compile and optimize.
Automatic wrapping
...
...
@@ -189,8 +189,8 @@ inputs. Therefore, an Apply node may be obtained from an Op
and a list of inputs by calling ``Op.make_node(*inputs)``.
Comparing with the Python language, an :ref:`apply` node is
t
heano's version of a function call whereas an :ref:`op` is
t
heano's version of a function definition.
T
heano's version of a function call whereas an :ref:`op` is
T
heano's version of a function definition.
An Apply instance has three important fields:
...
...
doc/advanced_tutorial/inplace.txt
浏览文件 @
1800ca6a
...
...
@@ -94,7 +94,7 @@ operation on ``x``.
.. note::
Inplace operations in
t
heano still work in a functional setting:
Inplace operations in
T
heano still work in a functional setting:
they need to return the modified input. Symbolically, Theano
requires one Variable standing for the input *before* being modified
and *another* Variable representing the input *after* being
...
...
doc/advanced_tutorial/type.txt
浏览文件 @
1800ca6a
...
...
@@ -160,7 +160,7 @@ the Type is to instantiate a plain Type and set the needed fields:
.. code-block:: python
from
t
heano import gof
from
T
heano import gof
double = gof.Type()
double.filter = filter
...
...
@@ -216,7 +216,7 @@ There are several ways to make sure that equality testing works properly:
#. Hide the Double class and only advertise a single instance of it.
Here we will prefer the final option, because it's the simplest.
Often Ops in the
t
heano code define the ``__eq__`` function though.
Often Ops in the
T
heano code define the ``__eq__`` function though.
Untangling some concepts
...
...
doc/examples/module/mechanism2.py
浏览文件 @
1800ca6a
...
...
@@ -9,7 +9,7 @@ class AccumulatorInstance(ModuleInstance):
class
Accumulator
(
Module
):
# This line tells
t
heano to instantiate an AccumulatorInstance
# This line tells
T
heano to instantiate an AccumulatorInstance
# when make() is called.
InstanceType
=
AccumulatorInstance
...
...
doc/glossary.txt
浏览文件 @
1800ca6a
...
...
@@ -93,8 +93,8 @@ Glossary of terminology
type
See :ref:`tensortypes`
Variable
A :ref:`
v
ariable` is the main data structure you work with when
Variable
A :ref:`
V
ariable` is the main data structure you work with when
using Theano. The symbolic inputs that you operate on are
Variables and what you get from applying various operations to
these inputs are also Variables. For example, when I type
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论