Exemplo n.º 1
0
 def testSISO(self):
     X = np.array([[1,2],[3,4]], dtype=df2.floatX)
     Y = df2.Identity().forward(X)
     np.testing.assert_array_equal(X, Y)
Exemplo n.º 2
0
 def testMIMO(self):
     X = np.array([[1,2],[3,4]], dtype=df2.floatX)
     Y1, Y2 = df2.Identity().forward([X, X*2])
     np.testing.assert_array_equal(X, Y1)
     np.testing.assert_array_equal(X*2, Y2)