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


import PyTorch
from test.test_helpers import myeval, myexec
from __future__ import print_function


def test_long_tensor():
    PyTorch.manualSeed(123)
    print('test_long_tensor')
    a = PyTorch.LongTensor(3, 2).geometric()
    print('a', a)
    myeval('a')

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


# Path: test/testLongTensor.py
import PyTorch
from test.test_helpers import myeval, myexec

from __future__ import print_function


def test_long_tensor():
    PyTorch.manualSeed(123)
    print('test_long_tensor')
    a = PyTorch.LongTensor(3, 2).geometric()
    print('a', a)
    myeval('a')

    myexec('a[1][1] = 9')