else:
                     return x + 10
     m = torch.jit.script(MyModule(use_memory_efficient=False))
     m.save("m.pt")

     m = torch.jit.script(MyModule(use_memory_efficient=True))
     # exception raised
     m(torch.rand(100))
