Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
710c0169
提交
710c0169
authored
3月 31, 2009
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More links in documentation
上级
4e25da0f
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
18 行增加
和
14 行删除
+18
-14
examples.txt
doc/basic_tutorial/examples.txt
+1
-1
tools.txt
doc/basic_tutorial/tools.txt
+16
-12
glossary.txt
doc/glossary.txt
+1
-1
没有找到文件。
doc/basic_tutorial/examples.txt
浏览文件 @
710c0169
...
@@ -164,7 +164,7 @@ you to specify properties of your inputs with greater detail. Here we
...
@@ -164,7 +164,7 @@ you to specify properties of your inputs with greater detail. Here we
give a default value of 1 for ``y`` by creating an In instance with
give a default value of 1 for ``y`` by creating an In instance with
its value field set to 1.
its value field set to 1.
Inputs with default values should
(must?)
follow inputs without default
Inputs with default values should follow inputs without default
values. There can be multiple inputs with default values. Defaults can
values. There can be multiple inputs with default values. Defaults can
be set positionally or by name, as in standard Python:
be set positionally or by name, as in standard Python:
...
...
doc/basic_tutorial/tools.txt
浏览文件 @
710c0169
...
@@ -28,7 +28,7 @@ Predefined types
...
@@ -28,7 +28,7 @@ Predefined types
----------------
----------------
Predefined types are
Predefined types are
located in the
``theano.tensor`
` package. The name of the types follow
located in the
:api:`theano.tensor
` package. The name of the types follow
a recipe:
a recipe:
``<dtype><dimensionality>``
``<dtype><dimensionality>``
...
@@ -59,12 +59,14 @@ matrix [m, n] No No
...
@@ -59,12 +59,14 @@ matrix [m, n] No No
====== ====== ========================================== =============================================
====== ====== ========================================== =============================================
So, if you want a row of 32-bit floats, it is available
So, if you want a row of 32-bit floats, it is available
as ``theano.tensor.frow``. If you want a matrix of unsigned
as :api:`theano.tensor.frow <theano.tensor.basic.frow>`.
32-bit integers it is available as ``theano.tensor.imatrix``.
If you want a matrix of unsigned 32-bit integers it is available as
:api:`theano.tensor.imatrix <theano.tensor.basic.imatrix>`.
Each of the types described above can be constructed by two methods:
Each of the types described above can be constructed by two methods:
a singular version (e.g., ``dmatrix``) and a plural version
a singular version (e.g., :api:`dmatrix <theano.tensor.basic.dmatrix>`)
(``dmatrices``). When called, the singular version takes a single
and a plural version (:api:`dmatrices <theano.tensor.dmatrices>`).
When called, the singular version takes a single
argument which is the name of the :term:`Variable` we want to make and it
argument which is the name of the :term:`Variable` we want to make and it
makes a single Variable of that type. The plural version can either take
makes a single Variable of that type. The plural version can either take
an integer or several strings. If an integer is provided, the method
an integer or several strings. If an integer is provided, the method
...
@@ -89,10 +91,11 @@ Custom tensor types
...
@@ -89,10 +91,11 @@ Custom tensor types
If you wish to use a type of tensor which is not already available here
If you wish to use a type of tensor which is not already available here
(for example, a 3D tensor) you can build an appropriate type using
(for example, a 3D tensor) you can build an appropriate type using
``theano.tensor.TensorType``. The first argument you pass is the ``dtype``
:api:`theano.tensor.TensorType <theano.tensor.basic.TensorType>`.
and the second is the ``broadcastable pattern``.
The first argument you pass is the `dtype` and the second is the
`broadcastable pattern`.
Where `
`dtype`
` is one of:
Where `
dtype
` is one of:
=========== ================ =================
=========== ================ =================
dtype domain bits
dtype domain bits
...
@@ -113,9 +116,10 @@ complex128 complex 128 (two float64)
...
@@ -113,9 +116,10 @@ complex128 complex 128 (two float64)
.. note::
.. note::
Even though
``theano.tensor`
` does not define any type
Even though
:api:`theano.tensor
` does not define any type
using ``complex`` dtypes (``complex64`` or ``complex128``),
using ``complex`` dtypes (``complex64`` or ``complex128``),
you can define them explicitly with ``TensorType`` (see example
you can define them explicitly with
:api:`TensorType <theano.tensor.basic.TensorType>` (see example
below). However, few operations are fully supported for complex
below). However, few operations are fully supported for complex
types: as of version 0.1, only elementary operations (``+-*/``)
types: as of version 0.1, only elementary operations (``+-*/``)
have C implementations. Additionally, complex types have received
have C implementations. Additionally, complex types have received
...
@@ -154,7 +158,7 @@ would behave like a row (1xN matrix). In the same way, a matrix (``[False,
...
@@ -154,7 +158,7 @@ would behave like a row (1xN matrix). In the same way, a matrix (``[False,
False]``) would behave like a 1xNxP tensor (``[True, False, False]``).
False]``) would behave like a 1xNxP tensor (``[True, False, False]``).
If we wanted to create a type representing a 3D array of unsigned
If we wanted to create a type representing a 3D array of unsigned
bytes, we would do:
bytes, we would do:
.. code-block:: python
.. code-block:: python
...
@@ -169,5 +173,5 @@ bytes, we would do:
...
@@ -169,5 +173,5 @@ bytes, we would do:
Ops
Ops
===
===
There are a lot of operations available in the
``theano.tensor`
` package.
There are a lot of operations available in the
:api:`theano.tensor
` package.
See :ref:`oplist`.
See :ref:`oplist`.
doc/glossary.txt
浏览文件 @
710c0169
...
@@ -91,7 +91,7 @@ Glossary of terminology
...
@@ -91,7 +91,7 @@ Glossary of terminology
WRITEME
WRITEME
type
type
WRITEME
See :ref:`tensortypes`
Variable
Variable
A :ref:`variable` is the main data structure you work with when
A :ref:`variable` is the main data structure you work with when
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论