ChaiBapchya commented on issue #13970: AttributeError: 'list' object has no attribute 'reshape' URL: https://github.com/apache/incubator-mxnet/issues/13970#issuecomment-457367855 As it is a list, it can't be reshaped. Convert it into a numpy array and then use it's reshape function. i.e. `np.array().reshape()` So above feedforward function will look like - ``` def feedforward(x, W1, W2, b1, b2): z1=np.dot(W1, np.array(x).reshape(4,1))+b1 a1=relu(z1) z2=np.dot(W2, a1)+b2 a2=sigmoid(z2) return z1, z2, a1, a2 ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services