def METHOD_NAME(self):
    # Mutating attribute with a Tensor type
    # But not exporting but using eager mode as well as dynamo optimize mode
    class Foo(torch.nn.Module):
        def __init__(self):
            super().__init__()
            self.a = torch.Tensor(3, 2)
        def forward(self, x):
            self.a = self.a.to(torch.float64)
            return x.sum() + self.a.sum()
    mod = Foo()
    arg = torch.Tensor(3, 2)
    real_result = mod(arg)
    opt_mod = torch._dynamo.optimize("eager", nopython=True)(mod)
    self.assertTrue(torch._dynamo.utils.same(opt_mod(arg), real_result))