Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
be0ea5ca
提交
be0ea5ca
authored
5月 26, 2021
作者:
Hector
提交者:
Thomas Wiecki
6月 07, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix additional typos
上级
a4626eda
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
9 行删除
+5
-9
debugmode.py
aesara/compile/debugmode.py
+2
-4
features.py
aesara/graph/features.py
+2
-4
unittest.rst
doc/extending/unittest.rst
+1
-1
没有找到文件。
aesara/compile/debugmode.py
浏览文件 @
be0ea5ca
...
@@ -104,8 +104,7 @@ class BadThunkOutput(DebugModeError):
...
@@ -104,8 +104,7 @@ class BadThunkOutput(DebugModeError):
def
str_diagnostic
(
self
):
def
str_diagnostic
(
self
):
"""
"""
Return a pretty multiline string representing the cause of
Return a pretty multiline string representing the cause of the exception.
the exception.
"""
"""
sio
=
StringIO
()
sio
=
StringIO
()
...
@@ -347,8 +346,7 @@ class InvalidValueError(DebugModeError):
...
@@ -347,8 +346,7 @@ class InvalidValueError(DebugModeError):
def
str_diagnostic
(
expected
,
value
,
rtol
,
atol
):
def
str_diagnostic
(
expected
,
value
,
rtol
,
atol
):
"""Return a pretty multiline string representing the cause
"""Return a pretty multiline string representing the cause of the exception."""
of the exception"""
sio
=
StringIO
()
sio
=
StringIO
()
try
:
try
:
...
...
aesara/graph/features.py
浏览文件 @
be0ea5ca
...
@@ -25,7 +25,7 @@ class ReplacementDidNotRemoveError(Exception):
...
@@ -25,7 +25,7 @@ class ReplacementDidNotRemoveError(Exception):
"""
"""
This exception should be thrown by replace_all_validate_remove
This exception should be thrown by replace_all_validate_remove
when an optimization wanted to remove a Variable or a Node from
when an optimization wanted to remove a Variable or a Node from
the graph, but the replacement it g
ived
didn't do that.
the graph, but the replacement it g
ave
didn't do that.
"""
"""
...
@@ -153,9 +153,7 @@ class BadOptimization(Exception):
...
@@ -153,9 +153,7 @@ class BadOptimization(Exception):
def
str_diagnostic
(
self
):
def
str_diagnostic
(
self
):
"""
"""
Return a pretty multiline string representating the cause
Return a pretty multiline string representing the cause of the exception.
of the exception.
"""
"""
# We have a pre-made message
# We have a pre-made message
if
getattr
(
self
,
"full_err"
,
None
)
is
not
None
:
if
getattr
(
self
,
"full_err"
,
None
)
is
not
None
:
...
...
doc/extending/unittest.rst
浏览文件 @
be0ea5ca
...
@@ -33,7 +33,7 @@ Unit Testing revolves around the following principles:
...
@@ -33,7 +33,7 @@ Unit Testing revolves around the following principles:
This page is in no way meant to replace tutorials on Python's unittest
This page is in no way meant to replace tutorials on Python's unittest
module, for this we refer the reader to the `official documentation
module, for this we refer the reader to the `official documentation
<http://docs.python.org/library/unittest.html>`_. We will however
<http://docs.python.org/library/unittest.html>`_. We will however
ad
ress certain specificitie
s about how unittests relate to aesara.
ad
dress certain specific
s about how unittests relate to aesara.
PyTest Primer
PyTest Primer
===============
===============
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论