# Path: test/test_helpers.py
# def myeval(expr):
#     parent_vars = inspect.stack()[1][0].f_locals
#     print(expr, ':', eval(expr, parent_vars))


import PyTorch
import gc
from test.test_helpers import myeval
from __future__ import print_function, division


def test_refcount():
    D = PyTorch.FloatTensor(1000, 1000).fill(1)

# Path: test/test_helpers.py
# def myeval(expr):
#     parent_vars = inspect.stack()[1][0].f_locals
#     print(expr, ':', eval(expr, parent_vars))


# Path: test/test_pytorch_refcount.py
import PyTorch
import gc
from test.test_helpers import myeval

from __future__ import print_function, division


def test_refcount():
    D = PyTorch.FloatTensor(1000, 1000).fill(1)

    myeval('D.isContiguous()')