提交 babe6f1b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Pacify flake8.

上级 f90f78ae
...@@ -753,14 +753,14 @@ class test_SoftMax(test_nnet.test_SoftMax): ...@@ -753,14 +753,14 @@ class test_SoftMax(test_nnet.test_SoftMax):
for i in sorted_f for i in sorted_f
if isinstance( if isinstance(
i.op, i.op,
self.gpu_grad_op self.gpu_grad_op)
)]) == 1) ]) == 1)
assert(len([i assert(len([i
for i in sorted_f for i in sorted_f
if isinstance( if isinstance(
i.op, i.op,
theano.tensor.nnet.SoftmaxGrad theano.tensor.nnet.SoftmaxGrad)
)]) == 0) ]) == 0)
# Verify that the SoftmaxGrad -> Gpu[Dnn]SoftmaxGrad # Verify that the SoftmaxGrad -> Gpu[Dnn]SoftmaxGrad
# optimization is not applied when cudnn is excluded or not # optimization is not applied when cudnn is excluded or not
...@@ -777,14 +777,14 @@ class test_SoftMax(test_nnet.test_SoftMax): ...@@ -777,14 +777,14 @@ class test_SoftMax(test_nnet.test_SoftMax):
for i in sorted_f for i in sorted_f
if isinstance( if isinstance(
i.op, i.op,
self.gpu_grad_op self.gpu_grad_op)
)]) == 0) ]) == 0)
assert(len([i assert(len([i
for i in sorted_f for i in sorted_f
if isinstance( if isinstance(
i.op, i.op,
theano.tensor.nnet.SoftmaxGrad theano.tensor.nnet.SoftmaxGrad)
)]) == 1) ]) == 1)
# Verify that the SoftmaxGrad -> GpuDnnSoftmaxGrad do not # Verify that the SoftmaxGrad -> GpuDnnSoftmaxGrad do not
# crash with manual graph # crash with manual graph
...@@ -798,11 +798,11 @@ class test_SoftMax(test_nnet.test_SoftMax): ...@@ -798,11 +798,11 @@ class test_SoftMax(test_nnet.test_SoftMax):
for i in sorted_f for i in sorted_f
if isinstance( if isinstance(
i.op, i.op,
self.gpu_grad_op self.gpu_grad_op)
)]) == 1) ]) == 1)
assert(len([i assert(len([i
for i in sorted_f for i in sorted_f
if isinstance( if isinstance(
i.op, i.op,
theano.tensor.nnet.SoftmaxGrad theano.tensor.nnet.SoftmaxGrad)
)]) == 0) ]) == 0)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论