def test_back_fc(optim):
    l1 = layer.FullyConnected(5, 10)
    x = np.ones((100, 5))
    dldy = np.random.randn(100, 10)
    dldx = l1.backward(dldy, x, optim)
    assert (dldx.shape == (100, 5))
def test_back_fc(optim):
    l1 = layer.FullyConnected(5, 10)
    x = np.ones((100, 5))
    dldy = np.random.randn(100, 10)
    dldx = l1.backward(dldy, x, optim)
    assert (dldx.shape == (100, 5))