Searched refs:python_op (Results 1 – 3 of 3) sorted by relevance
124 def gen_binary_op_func(python_op, inplace=False): argument126 if "torch" in python_op:
153 def python_op(x): function158 return python_op(x)
1857 def _scalar_helper(python_op, torch_op): argument1867 expected = python_op(a, b)2080 for python_op, torch_op in (2114 expected = python_op(first_scalar, second_scalar)2116 self.assertEqual(expected, python_op(first, second))