def test_dropout_eval(net):
    """Test dropout `.training` is set by `.eval()` on parent `nn.module`"""
    net.eval()
    assert net._dropout.training == False
Test dropout `.training` is set by `.eval()` on parent `nn.module`
tests/test_model.py