Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
42e31c46
提交
42e31c46
authored
1月 29, 2025
作者:
ricardoV94
提交者:
Ricardo Vieira
1月 31, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix broken references
上级
4e55e0ef
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
8 行增加
和
16 行删除
+8
-16
core_development_guide.rst
doc/core_development_guide.rst
+1
-1
creating_a_c_op.rst
doc/extending/creating_a_c_op.rst
+2
-2
creating_an_op.rst
doc/extending/creating_an_op.rst
+1
-1
inplace.rst
doc/extending/inplace.rst
+1
-1
other_ops.rst
doc/extending/other_ops.rst
+1
-1
index.rst
doc/library/tensor/random/index.rst
+1
-1
examples.rst
doc/tutorial/examples.rst
+1
-9
没有找到文件。
doc/core_development_guide.rst
浏览文件 @
42e31c46
...
...
@@ -26,4 +26,4 @@ some of them might be outdated though:
* :ref:`unittest` -- Tutorial on how to use unittest in testing PyTensor.
* :ref:`sparse` -- Description of the ``sparse`` type in PyTensor.
* :ref:`
libdoc_
sparse` -- Description of the ``sparse`` type in PyTensor.
doc/extending/creating_a_c_op.rst
浏览文件 @
42e31c46
...
...
@@ -923,7 +923,7 @@ pre-defined macros. These section tags have no macros: ``init_code``,
discussed below.
* ``APPLY_SPECIFIC(str)`` which will automatically append a name
unique to the :ref:`
A
pply` node that applies the `Op` at the end
unique to the :ref:`
a
pply` node that applies the `Op` at the end
of the provided ``str``. The use of this macro is discussed
further below.
...
...
@@ -994,7 +994,7 @@ Apply node in their own names to avoid conflicts between the different
versions of the apply-specific code. The code that wasn't
apply-specific was simply defined in the ``c_support_code`` method.
To make indentifiers that include the :ref:`
A
pply` node name use the
To make indentifiers that include the :ref:`
a
pply` node name use the
``APPLY_SPECIFIC(str)`` macro. In the above example, this macro is
used when defining the functions ``vector_elemwise_mult`` and
``vector_times_vector`` as well as when calling function
...
...
doc/extending/creating_an_op.rst
浏览文件 @
42e31c46
...
...
@@ -7,7 +7,7 @@ Creating a new :class:`Op`: Python implementation
So suppose you have looked through the library documentation and you don't see
a function that does what you want.
If you can implement something in terms of an existing :ref:`
O
p`, you should do that.
If you can implement something in terms of an existing :ref:`
o
p`, you should do that.
Odds are your function that uses existing PyTensor expressions is short,
has no bugs, and potentially profits from rewrites that have already been
implemented.
...
...
doc/extending/inplace.rst
浏览文件 @
42e31c46
...
...
@@ -200,7 +200,7 @@ input(s)'s memory). From there, go to the previous section.
certainly lead to erroneous computations.
You can often identify an incorrect `Op.view_map` or :attr:`Op.destroy_map`
by using :ref:`DebugMode`.
by using :ref:`DebugMode
<debugmode>
`.
.. note::
Consider using :class:`DebugMode` when developing
...
...
doc/extending/other_ops.rst
浏览文件 @
42e31c46
...
...
@@ -197,7 +197,7 @@ Want C speed without writing C code for your new Op? You can use Numba
to generate the C code for you! Here is an `example
Op <https://gist.github.com/nouiz/5492778#file-theano_op-py>`_ doing that.
.. _alternate_
PyT
ensor_types:
.. _alternate_
pyt
ensor_types:
Alternate PyTensor Types
========================
...
...
doc/library/tensor/random/index.rst
浏览文件 @
42e31c46
...
...
@@ -83,7 +83,7 @@ Low-level objects
.. automodule:: pytensor.tensor.random.op
:members: RandomVariable, default_rng
..automodule:: pytensor.tensor.random.type
..
automodule:: pytensor.tensor.random.type
:members: RandomType, RandomGeneratorType, random_generator_type
.. automodule:: pytensor.tensor.random.var
...
...
doc/tutorial/examples.rst
浏览文件 @
42e31c46
...
...
@@ -347,15 +347,7 @@ afterwards compile this expression to get functions,
using pseudo-random numbers is not as straightforward as it is in
NumPy, though also not too complicated.
The way to think about putting randomness into PyTensor's computations is
to put random variables in your graph. PyTensor will allocate a NumPy
`RandomStream` object (a random number generator) for each such
variable, and draw from it as necessary. We will call this sort of
sequence of random numbers a *random stream*. *Random streams* are at
their core shared variables, so the observations on shared variables
hold here as well. PyTensor's random objects are defined and implemented in
:ref:`RandomStream<libdoc_tensor_random_utils>` and, at a lower level,
in :ref:`RandomVariable<libdoc_tensor_random_basic>`.
The general user-facing API is documented in :ref:`RandomStream<libdoc_tensor_random_basic>`
For a more technical explanation of how PyTensor implements random variables see :ref:`prng`.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论