Unverified 提交 f9822628 authored 作者: Thomas Wiecki's avatar Thomas Wiecki 提交者: GitHub

Remove mention of being a fork. (#592)

* Replace mention of Aesara with Theano as Aesara is discontinued and Theano is the better-known library. * Also remove fork of Theano. * Mention PyMC.
上级 0666fd56
......@@ -5,8 +5,9 @@
|Tests Status| |Coverage|
|Project Name| is a fork of `Aesara <https://github.com/aesara-devs/aesara>`__ -- a Python library that allows one to define, optimize, and
|Project Name| is a Python library that allows one to define, optimize, and
efficiently evaluate mathematical expressions involving multi-dimensional arrays.
It provides the computational backend for `PyMC <https://github.com/pymc-devs/pymc>`__.
Features
========
......@@ -15,7 +16,8 @@ Features
- Extensible graph framework suitable for rapid development of custom operators and symbolic optimizations
- Implements an extensible graph transpilation framework that currently provides
compilation via C, `JAX <https://github.com/google/jax>`__, and `Numba <https://github.com/numba/numba>`__
- Based on one of the most widely-used Python tensor libraries: `Theano <https://github.com/Theano/Theano>`__
- Contrary to PyTorch and TensorFlow, PyTensor maintains a static graph which can be modified in-place to
allow for advanced optimizations
Getting started
===============
......
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: downstream_pr.sh <PR_number>"
echo "Port a specified PR from the Aesara repo to the PyTensor repo. Will create a new branch, adapt and apply the upstream PR, and create a new PR to PyTensor. Requires a remote aesara."
exit 1
fi
git am --abort
git checkout main
git branch -D downstream_$1
git fetch aesara
set -e
git pull origin main
git checkout -b downstream_$1
echo "Downloading patch..."
wget -O $1.patch https://patch-diff.githubusercontent.com/raw/aesara-devs/aesara/pull/$1.patch
echo "Replacing aesara strings..."
declare -a replace_strings=(
"s/aesara/pytensor/g"
"s/Aesara/PyTensor/g"
)
for replace in "${replace_strings[@]}"; do
sed -i -e "$replace" $1.patch
done
echo "Applying patch..."
if git am -3 --reject $1.patch ; then
echo "Patch applied successfully..."
else
echo "Patch failed. Find the .rej file and apply the changes manually. Then 'git add' all changed files, followed by 'git am --continue'. Then create a PR manually."
exit 1
fi
echo "Running pre-commit"
pre-commit run --all
git push origin downstream_$1
# get the informative title
title=$(curl https://api.github.com/repos/aesara-devs/aesara/pulls/$1 2>/dev/null | jq '.title')
gh pr create --repo pymc-devs/pytensor --label "aesara downstream" --title "🔄 From Aesara: $1: $title" --body "Downstreaming https://github.com/aesara-devs/aesara/pull/$1. PR port done by downstream_pr.sh script."
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: upstream_pr.sh <PR_number>"
echo "Port a specified PR from the PyTensor repo to the Aesara repo. Will create a new branch, adapt and apply the upstream PR, and create a new PR to PyTensor."
exit 1
fi
set -e
git checkout main
git pull origin main
git checkout -b downstream_$1
echo "Downloading patch..."
wget -O $1.patch https://patch-diff.githubusercontent.com/raw/pymc-devs/pytensor/pull/$1.patch
echo "Replacing aesara strings..."
declare -a replace_strings=(
"s/pytensor/aesara/g"
"s/PyTensor/Aesara/g"
)
for replace in "${replace_strings[@]}"; do
sed -i -e "$replace" $1.patch
done
echo "Applying patch..."
if git am -3 --reject $1.patch ; then
echo "Patch applied successfully..."
else
echo "Patch failed. Find the .rej file and apply the changes manually. Then 'git add' all changed files, followed by 'git am --continue'. Then create a PR manually."
exit 1
fi
echo "Running pre-commit"
pre-commit run --all
git push origin downstream_$1
title=$(curl https://api.github.com/repos/pymc-devs/pytensor/pulls/$1 2>/dev/null | jq '.title')
gh pr create --repo aesara-devs/aesara --title "Upstreaming PyTensor PR $1: $title" --body "Upstreaming https://github.com/pymc-devs/pytensor/pull/$1. PR port done by upstream_pr.sh script."
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论