Compute the forward pass of a dense (fully connected) layer for a batch: Y=XW+b, where X is n×din, W is din×dout and b has length dout.
Implement solve(X,W,b).
Returns. Return an n×dout NumPy array.
Example 1
Input:
solve([[1.0, 2.0]], [[1.0, 0.0], [0.0, 1.0]], [0.0, 0.0])
Output:
[[1.0, 2.0]]
Example 2
Input:
solve([[1.0, 2.0], [3.0, 4.0]], [[1.0], [1.0]], [0.5])
Output:
[[3.5], [7.5]]
No results yet
Run your code to check it against the examples, or submit to run every test.