Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f137ba7c
提交
f137ba7c
authored
1月 27, 2021
作者:
Brandon T. Willard
提交者:
Thomas Wiecki
1月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove theano.tensor.nnet.sigm tests from tests.tensor.nnet.test_basic
上级
511b593d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
24 行删除
+6
-24
test_basic.py
tests/tensor/nnet/test_basic.py
+1
-17
test_sigm.py
tests/tensor/nnet/test_sigm.py
+5
-7
没有找到文件。
tests/tensor/nnet/test_basic.py
浏览文件 @
f137ba7c
...
@@ -52,7 +52,7 @@ from theano.tensor.nnet.basic import (
...
@@ -52,7 +52,7 @@ from theano.tensor.nnet.basic import (
softmax_with_bias
,
softmax_with_bias
,
softsign
,
softsign
,
)
)
from
theano.tensor.nnet.sigm
import
sigmoid
,
softplus
from
theano.tensor.nnet.sigm
import
sigmoid
from
theano.tensor.shape
import
shape_padleft
,
specify_shape
from
theano.tensor.shape
import
shape_padleft
,
specify_shape
from
theano.tensor.subtensor
import
AdvancedSubtensor
from
theano.tensor.subtensor
import
AdvancedSubtensor
from
theano.tensor.type
import
(
from
theano.tensor.type
import
(
...
@@ -71,22 +71,6 @@ from theano.tensor.type import (
...
@@ -71,22 +71,6 @@ from theano.tensor.type import (
)
)
class
TestSigmoid
:
def
setup_method
(
self
):
utt
.
seed_rng
()
def
test_elemwise
(
self
):
utt
.
verify_grad
(
sigmoid
,
[
np
.
random
.
rand
(
3
,
4
)])
class
TestSoftplus
:
def
setup_method
(
self
):
utt
.
seed_rng
()
def
test_elemwise
(
self
):
utt
.
verify_grad
(
softplus
,
[
np
.
random
.
rand
(
3
,
4
)])
class
TestSoftmax
(
utt
.
InferShapeTester
):
class
TestSoftmax
(
utt
.
InferShapeTester
):
def
test_basic
(
self
):
def
test_basic
(
self
):
def
f
(
a
):
def
f
(
a
):
...
...
tests/tensor/nnet/test_sigm.py
浏览文件 @
f137ba7c
...
@@ -15,21 +15,19 @@ from theano.graph.opt import check_stack_trace
...
@@ -15,21 +15,19 @@ from theano.graph.opt import check_stack_trace
from
theano.graph.toolbox
import
is_same_graph
from
theano.graph.toolbox
import
is_same_graph
from
theano.tensor.inplace
import
neg_inplace
from
theano.tensor.inplace
import
neg_inplace
from
theano.tensor.math
import
clip
,
exp
,
log
,
mul
,
neg
from
theano.tensor.math
import
clip
,
exp
,
log
,
mul
,
neg
from
theano.tensor.nnet
import
(
hard_sigmoid
,
sigmoid
,
sigmoid_inplace
,
softplus
,
ultra_fast_sigmoid
,
)
from
theano.tensor.nnet.sigm
import
(
from
theano.tensor.nnet.sigm
import
(
ScalarSoftplus
,
ScalarSoftplus
,
compute_mul
,
compute_mul
,
hard_sigmoid
,
is_1pexp
,
is_1pexp
,
parse_mul_tree
,
parse_mul_tree
,
perform_sigm_times_exp
,
perform_sigm_times_exp
,
register_local_1msigmoid
,
register_local_1msigmoid
,
sigmoid
,
sigmoid_inplace
,
simplify_mul
,
simplify_mul
,
softplus
,
ultra_fast_sigmoid
,
)
)
from
theano.tensor.shape
import
Reshape
from
theano.tensor.shape
import
Reshape
from
theano.tensor.type
import
fmatrix
,
matrix
,
scalar
,
vector
,
vectors
from
theano.tensor.type
import
fmatrix
,
matrix
,
scalar
,
vector
,
vectors
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论