Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
81da9eb8
提交
81da9eb8
authored
5月 23, 2021
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
5月 24, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove outdated docs
上级
6c2655b6
全部展开
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
0 行增加
和
102 行删除
+0
-102
NEWS.txt
doc/NEWS.txt
+0
-3
citation.rst
doc/citation.rst
+0
-31
extending_aesara_gpu.rst
doc/extending/extending_aesara_gpu.rst
+0
-0
dev_start_guide.rst
doc/internal/dev_start_guide.rst
+0
-8
python.rst
doc/internal/python.rst
+0
-60
没有找到文件。
doc/NEWS.txt
deleted
100644 → 0
浏览文件 @
6c2655b6
.. _NEWS:
.. include:: ../NEWS.txt
doc/citation.rst
deleted
100644 → 0
浏览文件 @
6c2655b6
:orphan:
.. _citation:
Aesara Citation Policy
======================
If you use Aesara for academic research, you are highly encouraged (though not
required) to cite the following paper:
* Theano Development Team. `"Theano: A Python framework for fast computation of mathematical expressions"
<http://arxiv.org/pdf/1605.02688.pdf>`_.
(:download:`short BibTeX <theano-short.bib>`, :download:`full BibTeX <theano-full.bib>`)
Earlier articles:
* F. Bastien, P. Lamblin, R. Pascanu, J. Bergstra, I. Goodfellow,
A. Bergeron, N. Bouchard, D. Warde-Farley and Y. Bengio.
`"Theano: new features and speed improvements"
<http://arxiv.org/pdf/1211.5590.pdf>`_.
NIPS 2012 deep learning workshop. (`BibTeX
<http://www.iro.umontreal.ca/~lisa/publications2/index.php/export/publication/551/bibtex>`__)
* J. Bergstra, O. Breuleux, F. Bastien, P. Lamblin, R.
Pascanu, G. Desjardins, J. Turian, D. Warde-Farley and Y.
Bengio. `"Theano: A CPU and GPU Math Expression Compiler"
<http://www.iro.umontreal.ca/~lisa/pointeurs/theano_scipy2010.pdf>`_.
*Proceedings of the Python for Scientific Computing Conference (SciPy)
2010. June 30 - July 3, Austin, TX* (`BibTeX
<http://www.iro.umontreal.ca/~lisa/publications2/index.php/export/publication/461/bibtex>`__)
doc/extending/extending_aesara_gpu.rst
deleted
100644 → 0
浏览文件 @
6c2655b6
差异被折叠。
点击展开。
doc/internal/dev_start_guide.rst
deleted
100644 → 0
浏览文件 @
6c2655b6
.. _old_dev_start_guide:
============================
Developer Start Guide MOVED!
============================
The developer start guide :ref:`moved <dev_start_guide>`.
doc/internal/python.rst
deleted
100644 → 0
浏览文件 @
6c2655b6
.. _python_booster:
================
Python booster
================
`This page
<http://wordaligned.org/articles/essential-python-reading-list>`_ will
give you a warm feeling in your stomach.
Non-Basic Python features
-------------------------
Aesara doesn't use your grandfather's python.
* properties
a specific attribute that has get and set methods which python automatically invokes.
See [http://www.python.org/doc/newstyle/ New style classes].
* static methods vs. class methods vs. instance methods
* Decorators:
.. code-block:: python
@f
def g():
...
runs function ``f`` before each invocation of ``g``.
See `PEP 0318 <http://www.python.org/dev/peps/pep-0318/>`_.
``staticmethod`` is a specific decorator, since python 2.2
* ``__metaclass__`` is kinda like a decorator for classes. It runs the metaclass __init__ after the class is defined
* ``setattr`` + ``getattr`` + ``hasattr``
* ``*args`` is a tuple like argv in C++, ``**kwargs`` is a keyword args version
* ``pass`` is no-op.
* functions (function objects) can have attributes too. This technique
is often used to define a function's error messages.
>>> def f(): return f.a
>>> f.a = 5
>>> f()
5
* Warning about mutual imports:
* script a.py file defined a class A.
* script a.py imported file b.py
* file b.py imported a, and instantiated a.A()
* script a.py instantiated its own A(), and passed it to a function in b.py
* that function saw its argument as being of type __main__.A, not a.A.
Incidentally, this behaviour is one of the big reasons to put autotests in
different files from the classes they test!
If all the test cases were put into <file>.py directly, then during the test
cases, all <file>.py classes instantiated by unit tests would have type
``__main__.<classname>``, instead of type ``<file>.<classname>``. This should never
happen under normal usage, and can cause problems (like the one you are/were
experiencing).
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论