def test_lightning_module_scriptable():
    """Test that the LightningModule is `torch.jit.script`-able.

    Regression test for #15917.

    """
    model = BoringModel()
    trainer = Trainer()
    model.trainer = trainer
    torch.jit.script(model)
Test that the LightningModule is `torch.jit.script`-able.

    Regression test for #15917.

    
tests/tests_pytorch/core/test_lightning_module.py