INNER CODE UNIT · Python

y

MITDeepLearning/introtodeeplearning · mitdeeplearning/lab1.py:82

    x, y = func(*args)
    correct = (batch_size, seq_length)
    assert (
        x.shape == correct
    ), "[FAIL] test_batch_func_shapes: x {} is not correct shape {}".format(
        x.shape, correct
    )
    assert (
        y.shape == correct
    ), "[FAIL] test_batch_func_shapes: y {} is not correct shape {}".format(
        y.shape, correct
    )
    print("[PASS] test_batch_func_shapes")
    return True


def test_batch_func_next_step(func, args):
    x, y = func(*args)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…