Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
306d91ba
提交
306d91ba
authored
11月 23, 2020
作者:
Brandon T. Willard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename TestCrossentropy tests to TestCrossEntropy
上级
ce1b02e7
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
test_nnet.py
tests/tensor/nnet/test_nnet.py
+5
-5
没有找到文件。
tests/tensor/nnet/test_nnet.py
浏览文件 @
306d91ba
...
@@ -327,7 +327,7 @@ class TestSoftmaxGrad(utt.InferShapeTester):
...
@@ -327,7 +327,7 @@ class TestSoftmaxGrad(utt.InferShapeTester):
)
)
class
TestCross
e
ntropySoftmax1Hot
:
class
TestCross
E
ntropySoftmax1Hot
:
def
setup_method
(
self
):
def
setup_method
(
self
):
utt
.
seed_rng
()
utt
.
seed_rng
()
...
@@ -363,7 +363,7 @@ class TestCrossentropySoftmax1Hot:
...
@@ -363,7 +363,7 @@ class TestCrossentropySoftmax1Hot:
utt
.
verify_grad
(
f
,
[
np
.
random
.
rand
(
4
),
np
.
random
.
rand
(
4
)])
utt
.
verify_grad
(
f
,
[
np
.
random
.
rand
(
4
),
np
.
random
.
rand
(
4
)])
class
TestCross
e
ntropySoftmax1HotWithBiasDx
(
utt
.
InferShapeTester
):
class
TestCross
E
ntropySoftmax1HotWithBiasDx
(
utt
.
InferShapeTester
):
def
test_basic
(
self
):
def
test_basic
(
self
):
def
ff
(
class_dtype
):
def
ff
(
class_dtype
):
def
f
(
sm
):
def
f
(
sm
):
...
@@ -425,7 +425,7 @@ class TestCrossentropySoftmax1HotWithBiasDx(utt.InferShapeTester):
...
@@ -425,7 +425,7 @@ class TestCrossentropySoftmax1HotWithBiasDx(utt.InferShapeTester):
f
(
advec_val
,
admat_val
,
alvec_val
)
f
(
advec_val
,
admat_val
,
alvec_val
)
class
TestCross
e
ntropySoftmaxArgmax1HotWithBias
(
utt
.
InferShapeTester
):
class
TestCross
E
ntropySoftmaxArgmax1HotWithBias
(
utt
.
InferShapeTester
):
def
setup_method
(
self
):
def
setup_method
(
self
):
self
.
op
=
crossentropy_softmax_argmax_1hot_with_bias
self
.
op
=
crossentropy_softmax_argmax_1hot_with_bias
super
()
.
setup_method
()
super
()
.
setup_method
()
...
@@ -532,7 +532,7 @@ class TestPrepend(utt.InferShapeTester):
...
@@ -532,7 +532,7 @@ class TestPrepend(utt.InferShapeTester):
)
)
class
TestCross
e
ntropyCategorical1HotGrad
(
utt
.
InferShapeTester
):
class
TestCross
E
ntropyCategorical1HotGrad
(
utt
.
InferShapeTester
):
def
test_infer_shape
(
self
):
def
test_infer_shape
(
self
):
advec
=
vector
()
advec
=
vector
()
admat
=
matrix
()
admat
=
matrix
()
...
@@ -549,7 +549,7 @@ class TestCrossentropyCategorical1HotGrad(utt.InferShapeTester):
...
@@ -549,7 +549,7 @@ class TestCrossentropyCategorical1HotGrad(utt.InferShapeTester):
)
)
class
TestCross
e
ntropyCategorical1Hot
(
utt
.
InferShapeTester
):
class
TestCross
E
ntropyCategorical1Hot
(
utt
.
InferShapeTester
):
def
test_grad
(
self
):
def
test_grad
(
self
):
x
=
tt
.
matrix
(
"x"
)
x
=
tt
.
matrix
(
"x"
)
one_of_n
=
tt
.
lvector
(
"one_of_n"
)
one_of_n
=
tt
.
lvector
(
"one_of_n"
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论