提交 ec81225c authored 作者: Frederic's avatar Frederic

remove import not used detected by flymake

上级 b8e58590
...@@ -503,7 +503,6 @@ class test_Eig(utt.InferShapeTester): ...@@ -503,7 +503,6 @@ class test_Eig(utt.InferShapeTester):
warn=False) warn=False)
def test_eval(self): def test_eval(self):
import math
A = theano.tensor.matrix(dtype=self.dtype) A = theano.tensor.matrix(dtype=self.dtype)
self.assertEquals([e.eval({A: [[1]]}) for e in self.op(A)], self.assertEquals([e.eval({A: [[1]]}) for e in self.op(A)],
[[1.0], [[1.0]]]) [[1.0], [[1.0]]])
......
import sys
import time import time
import unittest
import numpy import numpy
import theano import theano
import theano.tensor as T import theano.tensor as T
from theano import function, Mode
from theano.tests import unittest_tools as utt from theano.tests import unittest_tools as utt
from theano.tensor.nnet import conv from theano.tensor.nnet import conv
......
import unittest import unittest
import sys
import time
import numpy import numpy
import theano.tensor as tensor import theano.tensor as tensor
from theano.tests import unittest_tools as utt from theano.tests import unittest_tools as utt
from theano.tensor.signal.downsample import (DownsampleFactorMax, max_pool_2d, from theano.tensor.signal.downsample import (DownsampleFactorMax, max_pool_2d,
DownsampleFactorMaxGrad) DownsampleFactorMaxGrad)
from theano import function, Mode from theano import function
class TestDownsampleFactorMax(utt.InferShapeTester): class TestDownsampleFactorMax(utt.InferShapeTester):
......
import cPickle import cPickle
from copy import copy from copy import copy
from itertools import imap from itertools import imap
import time
import unittest import unittest
import numpy import numpy
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from numpy.testing import dec
import theano import theano
from theano.gof.python25 import all, any from theano.gof.python25 import all, any
from theano.gof import Variable, Op
from theano import gof, scalar, config from theano import gof, scalar, config
from theano import tensor from theano import tensor
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论