提交 f137ba7c authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Thomas Wiecki

Remove theano.tensor.nnet.sigm tests from tests.tensor.nnet.test_basic

上级 511b593d
......@@ -52,7 +52,7 @@ from theano.tensor.nnet.basic import (
softmax_with_bias,
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.subtensor import AdvancedSubtensor
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):
def test_basic(self):
def f(a):
......
......@@ -15,21 +15,19 @@ from theano.graph.opt import check_stack_trace
from theano.graph.toolbox import is_same_graph
from theano.tensor.inplace import neg_inplace
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 (
ScalarSoftplus,
compute_mul,
hard_sigmoid,
is_1pexp,
parse_mul_tree,
perform_sigm_times_exp,
register_local_1msigmoid,
sigmoid,
sigmoid_inplace,
simplify_mul,
softplus,
ultra_fast_sigmoid,
)
from theano.tensor.shape import Reshape
from theano.tensor.type import fmatrix, matrix, scalar, vector, vectors
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论