rahuljo commented on code in PR #1848:
URL: https://github.com/apache/systemds/pull/1848#discussion_r1259520072


##########
src/main/python/tests/nn/test_relu.py:
##########
@@ -37,29 +34,40 @@ class TestRelu(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         cls.sds = SystemDSContext()
+        cls.X = np.array([0, -1, -2, 2, 3, -5])
+        cls.dout = np.array([0, 1, 2, 3, 4, 5])
 
     @classmethod
     def tearDownClass(cls):
         cls.sds.close()
 
     def test_forward(self):
-        relu = ReLU()
-        #forward
-        Xm = self.sds.from_numpy(X)
+        relu = ReLU(self.sds)
+        # forward
+        Xm = self.sds.from_numpy(self.X)
         out = relu.forward(Xm).compute().flatten()

Review Comment:
   Thanks! This worked.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@systemds.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to