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

remove unused error.

上级 b174a78e
from nose.plugins.skip import SkipTest
import numpy
import unittest
import theano
from theano import shared, function
......@@ -306,7 +307,6 @@ class T_Images2Neibs(unittest_tools.InferShapeTester):
def test_grad_ignore_border(self):
shape = (2, 3, 5, 5)
images = T.dtensor4()
images_val = numpy.random.rand(*shape).astype('float32')
def fn(images):
......@@ -319,7 +319,6 @@ class T_Images2Neibs(unittest_tools.InferShapeTester):
def test_neibs2images_grad(self):
# say we had images of size (2, 3, 20, 20)
# then we extracted 2x2 neighbors on this, we get (2 * 3 * 10 * 10, 4)
neibs = T.dmatrix()
neibs_val = numpy.random.rand(600, 4)
def fn(neibs):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论