def test_interface(self): mySymbolicMatricesList1 = TypedListType(T.TensorType(theano.config.floatX, (False, False)))() mySymbolicMatricesList2 = TypedListType(T.TensorType(theano.config.floatX, (False, False)))() z = mySymbolicMatricesList1.extend(mySymbolicMatricesList2) f = theano.function([mySymbolicMatricesList1, mySymbolicMatricesList2], z) x = rand_ranged_matrix(-1000, 1000, [100, 101]) y = rand_ranged_matrix(-1000, 1000, [100, 101]) self.assertTrue(numpy.array_equal(f([x], [y]), [x, y]))
def test_interface(self): mySymbolicMatricesList1 = TypedListType( T.TensorType(theano.config.floatX, (False, False)))() mySymbolicMatricesList2 = TypedListType( T.TensorType(theano.config.floatX, (False, False)))() z = mySymbolicMatricesList1.extend(mySymbolicMatricesList2) f = theano.function([mySymbolicMatricesList1, mySymbolicMatricesList2], z) x = rand_ranged_matrix(-1000, 1000, [100, 101]) y = rand_ranged_matrix(-1000, 1000, [100, 101]) self.assertTrue(numpy.array_equal(f([x], [y]), [x, y]))