wuxun-zhang commented on a change in pull request #16184: Add large tensor nightly tests for
MKL-DNN operators
URL: https://github.com/apache/incubator-mxnet/pull/16184#discussion_r341419961
##########
File path: tests/nightly/test_large_array.py
##########
@@ -210,8 +210,12 @@ def test_dot():
def test_FullyConnected():
a = nd.ones(shape=(LARGE_X, SMALL_Y))
b = nd.ones(shape=(SMALL_Y, SMALL_Y))
- res = nd.FullyConnected(a, b, num_hidden=b.shape[1], no_bias=True)
- assert np.sum(res[-1].asnumpy() == SMALL_Y) == b.shape[1]
+ c = nd.ones(shape=(b.shape[0],))
+ res = nd.FullyConnected(a, b, num_hidden=b.shape[0], no_bias=True)
+ assert np.sum(res[-1].asnumpy() == a.shape[1]) == b.shape[0]
+
+ res = nd.FullyConnected(a, b, c, num_hidden=b.shape[0], no_bias=False)
Review comment:
Just want to cover `w/ bias` and `w/o bias`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
|