Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
3e55a209
提交
3e55a209
authored
9月 16, 2024
作者:
Virgile Andreani
提交者:
Thomas Wiecki
9月 17, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable sphinx-lint pre-commit hook
上级
a8735971
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
11 行增加
和
6 行删除
+11
-6
.pre-commit-config.yaml
.pre-commit-config.yaml
+5
-0
creating_a_c_op.rst
doc/extending/creating_a_c_op.rst
+1
-1
creating_a_numba_jax_op.rst
doc/extending/creating_a_numba_jax_op.rst
+1
-1
type.rst
doc/extending/type.rst
+1
-1
io.rst
doc/library/compile/io.rst
+1
-1
config.rst
doc/library/config.rst
+1
-1
basic.rst
doc/library/tensor/basic.rst
+1
-1
没有找到文件。
.pre-commit-config.yaml
浏览文件 @
3e55a209
...
...
@@ -21,6 +21,11 @@ repos:
pytensor/tensor/variable\.py|
)$
-
id
:
check-merge-conflict
-
repo
:
https://github.com/sphinx-contrib/sphinx-lint
rev
:
v1.0.0
hooks
:
-
id
:
sphinx-lint
args
:
[
"
."
]
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.6.5
hooks
:
...
...
doc/extending/creating_a_c_op.rst
浏览文件 @
3e55a209
...
...
@@ -152,7 +152,7 @@ This distance between consecutive elements of an array over a given dimension,
is called the stride of that dimension.
Accessing NumPy :class
`ndarray`\s'
data and properties
Accessing NumPy :class
:`ndarray`'s
data and properties
------------------------------------------------------
The following macros serve to access various attributes of NumPy :class:`ndarray`\s.
...
...
doc/extending/creating_a_numba_jax_op.rst
浏览文件 @
3e55a209
...
...
@@ -60,7 +60,7 @@ could also have any data type (e.g. floats, ints), so our implementation
must be able to handle all the possible data types.
It also tells us that there's only one return value, that it has a data type
determined by :meth:`x.type
()
` i.e., the data type of the original tensor.
determined by :meth:`x.type` i.e., the data type of the original tensor.
This implies that the result is necessarily a matrix.
Some class may have a more complex behavior. For example, the :class:`CumOp`\ :class:`Op`
...
...
doc/extending/type.rst
浏览文件 @
3e55a209
...
...
@@ -333,7 +333,7 @@ returns eitehr a new transferred variable (which can be the same as
the input if no transfer is necessary) or returns None if the transfer
can't be done.
Then register that function by calling :func:`register_transfer
()
`
Then register that function by calling :func:`register_transfer`
with it as argument.
An example
...
...
doc/library/compile/io.rst
浏览文件 @
3e55a209
...
...
@@ -36,7 +36,7 @@ The ``inputs`` argument to ``pytensor.function`` is a list, containing the ``Var
``self.<name>``. The default value is ``None``.
``value``: literal or ``Container``. The initial/default value for this
input. If update is
``
None``, this input acts just like
input. If update is
``
None``, this input acts just like
an argument with a default value in Python. If update is not ``None``,
changes to this
value will "stick around", whether due to an update or a user's
...
...
doc/library/config.rst
浏览文件 @
3e55a209
...
...
@@ -226,7 +226,7 @@ import ``pytensor`` and print the config variable, as in:
in the future.
The ``'numpy+floatX'`` setting attempts to mimic NumPy casting rules,
although it prefers to use ``float32`
`
numbers instead of ``float64`` when
although it prefers to use ``float32`
`
numbers instead of ``float64`` when
``config.floatX`` is set to ``'float32'`` and the associated data is not
explicitly typed as ``float64`` (e.g. regular Python floats). Note that
``'numpy+floatX'`` is not currently behaving exactly as planned (it is a
...
...
doc/library/tensor/basic.rst
浏览文件 @
3e55a209
...
...
@@ -1064,7 +1064,7 @@ Reductions
inner summation. This will not necessarily be the dtype of the
output (in particular if it is a discrete (int/uint) dtype, the
output will be in a float type). If None, then we use the same
rules as :func:`sum
()
`.
rules as :func:`sum`.
:Returns: mean value of *x* along *axis*
`axis` can be:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论