Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
9bd1bff5
提交
9bd1bff5
authored
10月 07, 2011
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #108 from nouiz/doc_comment
Doc comment
上级
a156506d
2a7a23af
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
0 行删除
+39
-0
dev_start_guide.txt
doc/internal/dev_start_guide.txt
+36
-0
basic.py
theano/tensor/basic.py
+3
-0
没有找到文件。
doc/internal/dev_start_guide.txt
浏览文件 @
9bd1bff5
...
...
@@ -102,6 +102,28 @@ typo) to keep the history clean, you can do it like this:
git commit --amend
git push -u origin my_shiny_feature:my_shiny_feature
Coding Style Auto Check
-----------------------
In Theano, we use the same coding style as the `Pylearn
<http://deeplearning.net/software/pylearn/v2_planning/API_coding_style.html>`_
project. The principal thing to know is that we follow the
`pep8 <http://www.python.org/dev/peps/pep-0008/>`_ coding style.
We use git hooks provided in the project `pygithooks
<https://github.com/lumberlabs/pygithooks>`_ to validate that commits
respect pep8. This happens when each user commits, not when we
push/merge to the Theano repository. Github doesn't allow us to have
code executed when we push to the repository. So we ask all
contributors to use those hooks.
For historic reason, we currently don't have all files respecting pep8.
We decided to fix everything incrementally. So not all files respect it
now. So we strongly suggest that you use the "increment" pygithooks
config option to have a good workflow. See the pygithooks main page
for how to set it up for Theano and how to enable this option.
Cleaning up history
-------------------
...
...
@@ -186,6 +208,20 @@ Once you have such a branch, in order to update it, do:
Keep in mind that this branch should be "read-only": if you want to patch
Theano, do it in another branch like described above.
Optional
--------
You can instruct git to do color diff. For this, you need to add those lines in the file ~/.gitconfig
.. code-block:: bash
[color]
branch = auto
diff = auto
interactive = auto
status = auto
Nightly test
------------
...
...
theano/tensor/basic.py
浏览文件 @
9bd1bff5
...
...
@@ -4908,6 +4908,9 @@ class AdvancedSubtensor1(Op):
o
=
out
[
0
]
else
:
o
=
None
# I have read that using clip or wrap mode make it a lot faster when
# the output is provided
out
[
0
]
=
x
.
take
(
i
,
axis
=
0
,
out
=
o
)
def
grad
(
self
,
inputs
,
grads
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论