Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
eb4f92f4
提交
eb4f92f4
authored
6月 05, 2021
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
6月 05, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change references to master branch to main
上级
175e3e86
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
20 行增加
和
20 行删除
+20
-20
pypi.yml
.github/workflows/pypi.yml
+2
-2
test.yml
.github/workflows/test.yml
+2
-2
Makefile
Makefile
+1
-1
README.rst
README.rst
+1
-1
dev_start_guide.rst
doc/dev_start_guide.rst
+9
-9
jax_op.rst
doc/extending/jax_op.rst
+5
-5
没有找到文件。
.github/workflows/pypi.yml
浏览文件 @
eb4f92f4
...
@@ -2,10 +2,10 @@ name: PyPI
...
@@ -2,10 +2,10 @@ name: PyPI
on
:
on
:
push
:
push
:
branches
:
branches
:
-
ma
ster
-
ma
in
-
auto-release
-
auto-release
pull_request
:
pull_request
:
branches
:
[
ma
ster
]
branches
:
[
ma
in
]
release
:
release
:
types
:
[
published
]
types
:
[
published
]
...
...
.github/workflows/test.yml
浏览文件 @
eb4f92f4
...
@@ -3,11 +3,11 @@ name: Tests
...
@@ -3,11 +3,11 @@ name: Tests
on
:
on
:
push
:
push
:
branches
:
branches
:
-
ma
ster
-
ma
in
-
checks
-
checks
pull_request
:
pull_request
:
branches
:
branches
:
-
ma
ster
-
ma
in
jobs
:
jobs
:
changes
:
changes
:
...
...
Makefile
浏览文件 @
eb4f92f4
...
@@ -59,7 +59,7 @@ test: # Test code using pytest.
...
@@ -59,7 +59,7 @@ test: # Test code using pytest.
pytest
-v
tests/
${
PROJECT_DIR
}
--cov
=
${
PROJECT_DIR
}
--cov-report
=
xml
--html
=
testing-report.html
--self-contained-html
pytest
-v
tests/
${
PROJECT_DIR
}
--cov
=
${
PROJECT_DIR
}
--cov-report
=
xml
--html
=
testing-report.html
--self-contained-html
coverage
:
test
coverage
:
test
diff-cover coverage.xml
--compare-branch
=
ma
ster
--fail-under
=
100
diff-cover coverage.xml
--compare-branch
=
ma
in
--fail-under
=
100
pypi
:
pypi
:
${
PYTHON
}
setup.py clean
--all
;
\
${
PYTHON
}
setup.py clean
--all
;
\
...
...
README.rst
浏览文件 @
eb4f92f4
...
@@ -122,5 +122,5 @@ The PyMC group operates under the NumFOCUS umbrella. If you want to support us f
...
@@ -122,5 +122,5 @@ The PyMC group operates under the NumFOCUS umbrella. If you want to support us f
.. |Project Name| replace:: Aesara
.. |Project Name| replace:: Aesara
.. |Tests Status| image:: https://github.com/pymc-devs/aesara/workflows/Tests/badge.svg
.. |Tests Status| image:: https://github.com/pymc-devs/aesara/workflows/Tests/badge.svg
:target: https://github.com/pymc-devs/aesara/actions?query=workflow%3ATests
:target: https://github.com/pymc-devs/aesara/actions?query=workflow%3ATests
.. |Coverage| image:: https://codecov.io/gh/pymc-devs/aesara/branch/ma
ster
/graph/badge.svg?token=WVwr8nZYmc
.. |Coverage| image:: https://codecov.io/gh/pymc-devs/aesara/branch/ma
in
/graph/badge.svg?token=WVwr8nZYmc
:target: https://codecov.io/gh/pymc-devs/aesara
:target: https://codecov.io/gh/pymc-devs/aesara
doc/dev_start_guide.rst
浏览文件 @
eb4f92f4
...
@@ -345,12 +345,12 @@ Using your local copy
...
@@ -345,12 +345,12 @@ Using your local copy
---------------------
---------------------
To update your library to the latest revision, you should have a local branch
To update your library to the latest revision, you should have a local branch
that tracks
central/master
. You can add one (named "trunk" here) with:
that tracks
``origin/main``
. You can add one (named "trunk" here) with:
.. code-block:: bash
.. code-block:: bash
git fetch
central
git fetch
origin
git branch trunk
central/master
git branch trunk
origin/main
Once you have such a branch, in order to update it, do:
Once you have such a branch, in order to update it, do:
...
@@ -396,13 +396,13 @@ Start a new local branch
...
@@ -396,13 +396,13 @@ Start a new local branch
------------------------
------------------------
When working on a new feature in your own fork, start from an up-to-date copy
When working on a new feature in your own fork, start from an up-to-date copy
of the `ma
ster
` branch (the principal one) of the central repository
of the `ma
in
` branch (the principal one) of the central repository
(Aesara/Aesara on GitHub):
(Aesara/Aesara on GitHub):
.. code-block:: bash
.. code-block:: bash
git fetch
central
git fetch
origin
git checkout -b my_shiny_feature
central/master
git checkout -b my_shiny_feature
origin/main
.. note::
.. note::
...
@@ -410,7 +410,7 @@ of the `master` branch (the principal one) of the central repository
...
@@ -410,7 +410,7 @@ of the `master` branch (the principal one) of the central repository
.. code-block:: bash
.. code-block:: bash
git branch my_shiny_feature
central/master
git branch my_shiny_feature
origin/main
git checkout my_shiny_feature
git checkout my_shiny_feature
...
@@ -422,7 +422,7 @@ branch to your github fork first:
...
@@ -422,7 +422,7 @@ branch to your github fork first:
.. code-block:: bash
.. code-block:: bash
git commit -a -m "
y
our message here"
git commit -a -m "
Y
our message here"
.. code-block:: bash
.. code-block:: bash
...
@@ -431,7 +431,7 @@ branch to your github fork first:
...
@@ -431,7 +431,7 @@ branch to your github fork first:
Then, go to your fork's github page on the github website, select your
Then, go to your fork's github page on the github website, select your
feature branch and hit the "Pull Request" button in the top right
feature branch and hit the "Pull Request" button in the top right
corner. This will signal the maintainers that you wish to submit your
corner. This will signal the maintainers that you wish to submit your
changes for inclusion in
central/master
.
changes for inclusion in
``origin/main``
.
Address reviewer comments
Address reviewer comments
...
...
doc/extending/jax_op.rst
浏览文件 @
eb4f92f4
...
@@ -15,7 +15,7 @@ to know what we want JAX to do.
...
@@ -15,7 +15,7 @@ to know what we want JAX to do.
| Here are the examples for ``eye`` and ``ifelse`` from Aesara from the
| Here are the examples for ``eye`` and ``ifelse`` from Aesara from the
compiled doc and codebase respectively
compiled doc and codebase respectively
| https://aesara.readthedocs.io/en/latest/library/tensor/basic.html?highlight=eye#aesara.tensor.eye
| https://aesara.readthedocs.io/en/latest/library/tensor/basic.html?highlight=eye#aesara.tensor.eye
| https://github.com/pymc-devs/aesara/blob/ma
ster
/aesara/ifelse.py#L35
| https://github.com/pymc-devs/aesara/blob/ma
in
/aesara/ifelse.py#L35
Step 2: Find the relevant JAX method (or something close)
Step 2: Find the relevant JAX method (or something close)
=========================================================
=========================================================
...
@@ -39,7 +39,7 @@ logic.
...
@@ -39,7 +39,7 @@ logic.
return res if n_outs > 1 else res[0]
return res if n_outs > 1 else res[0]
*Code in context:*
*Code in context:*
https://github.com/pymc-devs/aesara/blob/ma
ster
/aesara/link/jax/dispatch.py#L583
https://github.com/pymc-devs/aesara/blob/ma
in
/aesara/link/jax/dispatch.py#L583
Step 3: Register the function with the jax_funcify dispatcher
Step 3: Register the function with the jax_funcify dispatcher
=============================================================
=============================================================
...
@@ -51,7 +51,7 @@ short tutorial on dispatching is at the bottom.
...
@@ -51,7 +51,7 @@ short tutorial on dispatching is at the bottom.
The linker functions should be added to ``dispatch`` module linked
The linker functions should be added to ``dispatch`` module linked
below.
below.
https://github.com/pymc-devs/aesara/blob/ma
ster
/aesara/link/jax/dispatch.py
https://github.com/pymc-devs/aesara/blob/ma
in
/aesara/link/jax/dispatch.py
Here’s an example for the Eye Op.
Here’s an example for the Eye Op.
...
@@ -69,7 +69,7 @@ Here’s an example for the Eye Op.
...
@@ -69,7 +69,7 @@ Here’s an example for the Eye Op.
return eye
return eye
*Code in context:*
*Code in context:*
https://github.com/pymc-devs/aesara/blob/ma
ster
/aesara/link/jax/dispatch.py#L1071
https://github.com/pymc-devs/aesara/blob/ma
in
/aesara/link/jax/dispatch.py#L1071
Step 4: Write tests
Step 4: Write tests
===================
===================
...
@@ -82,7 +82,7 @@ compile the same function graph in Python and JAX and check that the
...
@@ -82,7 +82,7 @@ compile the same function graph in Python and JAX and check that the
numerical output is similar betwen the JAX and Python output, as well
numerical output is similar betwen the JAX and Python output, as well
object types to ensure correct compilation.
object types to ensure correct compilation.
https://github.com/pymc-devs/aesara/blob/ma
ster
/tests/link/test_jax.py
https://github.com/pymc-devs/aesara/blob/ma
in
/tests/link/test_jax.py
.. code:: python
.. code:: python
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论