Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE]: torch.compile test functions #162

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ev-br
Copy link
Collaborator

@ev-br ev-br commented Jul 6, 2023

Hack in a torch.compile into test functions.
This is very slow, and the output is very long. One strategy could be to run it on a test file/class, and then rerun the failing tests one by one.

@ev-br
Copy link
Collaborator Author

ev-br commented Jul 6, 2023

A representative error log:

$ pytest torch_np/tests/numpy_tests/core/test_dlpack.py::TestDLPack::test_dtype_passthrough[int8] 
=========================================================================================== test session starts ===========================================================================================
platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.2.0
rootdir: /home/br/sweethome/proj/scipy/torch_np_compat
collected 1 item                                                                                                                                                                                          

torch_np/tests/numpy_tests/core/test_dlpack.py F                                                                                                                                                    [100%]

================================================================================================ FAILURES =================================================================================================
_________________________________________________________________________________ TestDLPack.test_dtype_passthrough[int8] _________________________________________________________________________________

self = 42, dtype = <class 'torch_np._dtypes.int8'>

    @pytest.mark.parametrize("dtype", [
        np.int8, np.int16, np.int32, np.int64,
        np.uint8,
        np.float16, np.float32, np.float64,
        np.complex64, np.complex128
    ])
    def test_dtype_passthrough(self, dtype):
>       x = np.arange(5, dtype=dtype)

torch_np/tests/numpy_tests/core/test_dlpack.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

___stack0 = array_w([0, 1, 2, 3, 4])

    x = np.arange(5, dtype=dtype)
    y = np.from_dlpack(x)
    
    assert y.dtype == x.dtype
>   assert_array_equal(x, y)
E   AssertionError: 
E   Arrays are not equal
E   
E   x and y nan location mismatch:
E    x: array_w([0, 1, 2, 3, 4])
E    y: array_w([0, 1, 2, 3, 4])

torch_np/tests/numpy_tests/core/test_dlpack.py:50: AssertionError
------------------------------------------------------------------------------------------ Captured stderr call -------------------------------------------------------------------------------------------
[2023-07-06 17:24:53,492] torch._dynamo.eval_frame: [DEBUG] skipping __init__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:53,492] torch._dynamo.eval_frame: [DEBUG] skipping __enter__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:53,492] torch._dynamo.eval_frame: [DEBUG] skipping helper /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:53,492] torch._dynamo.eval_frame: [DEBUG] skipping __init__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:53,492] torch._dynamo.eval_frame: [DEBUG] skipping __enter__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:53,492] torch._dynamo.eval_frame: [DEBUG] skipping enable_dynamic /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/eval_frame.py
[2023-07-06 17:24:53,493] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing test_dtype_passthrough /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/tests/numpy_tests/core/test_dlpack.py:39
[2023-07-06 17:24:53,495] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/tests/numpy_tests/core/test_dlpack.py:46
[2023-07-06 17:24:53,495] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL np []
[2023-07-06 17:24:53,495] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR arange [PythonModuleVariable()]
[2023-07-06 17:24:53,496] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 5 [UserFunctionVariable()]
[2023-07-06 17:24:53,496] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), ConstantVariable(int)]
[2023-07-06 17:24:53,496] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [UserFunctionVariable(), ConstantVariable(int), UserDefinedClassVariable()]
[2023-07-06 17:24:53,496] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [UserFunctionVariable(), ConstantVariable(int), UserDefinedClassVariable(), ConstantVariable(tuple)]
[2023-07-06 17:24:53,497] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object wrapped at 0x7fb3a44bfb30, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py", line 191>
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:193
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL inspect []
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR signature [PythonModuleVariable()]
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF func [LambdaVariable()]
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [LambdaVariable(), UserFunctionVariable()]
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST sig [InspectSignatureVariable()]
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:194
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST sig []
[2023-07-06 17:24:53,498] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR parameters [InspectSignatureVariable()]
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_DEREF params [GetAttrVariable(InspectSignatureVariable(), parameters)]
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:195
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL next []
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL iter [BuiltinVariable(next)]
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF params [BuiltinVariable(next), BuiltinVariable(iter)]
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR values [BuiltinVariable(next), BuiltinVariable(iter), GetAttrVariable(InspectSignatureVariable(), parameters)]
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 0 [BuiltinVariable(next), BuiltinVariable(iter), GetAttrVariable(GetAttrVariable(InspectSignatureVariable(), parameters), values)]
[2023-07-06 17:24:53,499] torch._dynamo.symbolic_convert: [DEBUG] FAILED INLINING <code object wrapped at 0x7fb3a44bfb30, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py", line 191>
[2023-07-06 17:24:53,500] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:53,500] torch._dynamo.symbolic_convert: [DEBUG] break_graph_if_unsupported triggered compile
Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1152, in CALL_FUNCTION_KW
    self.call_function(fn, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/functions.py", line 288, in call_function
    return super().call_function(tx, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/functions.py", line 121, in call_function
    return tx.inline_user_function_return(
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 595, in inline_user_function_return
    result = InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 2134, in inline_call
    return cls.inline_call_(parent, func, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 2231, in inline_call_
    tracer.run()
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 708, in run
    and self.step()
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 668, in step
    getattr(self, inst.opname)(inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1100, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/misc.py", line 598, in call_function
    return self.obj.call_method(tx, self.name, args, kwargs).add_options(self)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/misc.py", line 616, in call_method
    return super().call_method(tx, name, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/base.py", line 329, in call_method
    raise unimplemented(f"call_method {self} {name} {args} {kwargs}")
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/exc.py", line 141, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: call_method GetAttrVariable(InspectSignatureVariable(), parameters) values [] {}
[2023-07-06 17:24:53,501] torch._dynamo.symbolic_convert.__graph_breaks: [DEBUG] Graph break: call_method GetAttrVariable(InspectSignatureVariable(), parameters) values [] {} from user code at   File "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/tests/numpy_tests/core/test_dlpack.py", line 46, in test_dtype_passthrough
    x = np.arange(5, dtype=dtype)
  File "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py", line 195, in wrapped
    first_param = next(iter(params.values()))

[2023-07-06 17:24:53,501] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:53,501] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='call_method GetAttrVariable(InspectSignatureVariable(), parameters) values [] {}', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/tests/numpy_tests/core/test_dlpack.py, line 46 in test_dtype_passthrough>, <FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py, line 195 in wrapped>], graph_break=True)
[2023-07-06 17:24:53,519] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_obj_id(L['dtype'], 94921618590528)
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
[2023-07-06 17:24:53,519] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* wrapped             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 191
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping signature /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping from_callable /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping _signature_from_callable /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping unwrap /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping _is_wrapper /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping isfunction /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping _signature_from_function /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping __init__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping __call__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/enum.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping __new__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/enum.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping __init__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,519] torch._dynamo.eval_frame: [DEBUG] skipping <genexpr> /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,520] torch._dynamo.eval_frame: [DEBUG] skipping name /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,520] torch._dynamo.eval_frame: [DEBUG] skipping parameters /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,520] torch._dynamo.eval_frame: [DEBUG] skipping kind /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,520] torch._dynamo.convert_frame: [INFO] converting frame raised unsupported, leaving it unconverted
[2023-07-06 17:24:53,520] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* maybe_normalize             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 134
[2023-07-06 17:24:53,520] torch._dynamo.eval_frame: [DEBUG] skipping annotation /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:53,520] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* normalize_optional_array_like             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 55
[2023-07-06 17:24:53,520] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* normalize_array_like             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 43
[2023-07-06 17:24:53,520] torch._dynamo.eval_frame: [DEBUG] skipping parent <frozen importlib._bootstrap>
[2023-07-06 17:24:53,520] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* asarray             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 516
[2023-07-06 17:24:53,520] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* array             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 482
[2023-07-06 17:24:53,521] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing _coerce_to_tensor /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:167
[2023-07-06 17:24:53,521] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:53,521] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:53,521] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), ConstantVariable(int)]
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:53,522] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:53,523] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:53,523] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:53,562] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:53,562] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:206
[2023-07-06 17:24:53,562] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:53,562] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR get_default_dtype_for [PythonModuleVariable()]
[2023-07-06 17:24:53,563] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:53,563] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:53,563] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserFunctionVariable(), TorchVariable(torch.int64)]
[2023-07-06 17:24:53,563] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:25
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [TorchVariable(torch.int64)]
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR bool [TorchVariable(torch.int64), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [TorchVariable(torch.int64), ConstantVariable(dtype)]
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 14 [ConstantVariable(bool)]
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:27
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:53,564] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_complex [TorchVariable(torch.int64)]
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:29
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_floating_point [TorchVariable(torch.int64)]
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 38 [ConstantVariable(bool)]
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:32
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL default_dtypes []
[2023-07-06 17:24:53,565] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR int_dtype [NamedTupleVariable()]
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST torch_dtype [ConstantVariable(dtype)]
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST torch_dtype [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:53,566] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype)]
[2023-07-06 17:24:53,567] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype), ConstantVariable(tuple)]
[2023-07-06 17:24:53,567] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:53,567] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:53,567] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:53,568] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:53,569] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo done tracing _coerce_to_tensor (RETURN_VALUE)
[2023-07-06 17:24:53,570] torch._dynamo.symbolic_convert: [DEBUG] RETURN_VALUE triggered compile
[2023-07-06 17:24:53,570] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='return_value', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py, line 221 in _coerce_to_tensor>], graph_break=False)
[2023-07-06 17:24:53,571] torch._dynamo.output_graph.__graph_code: [DEBUG] TRACED GRAPH
 ===== __compiled_fn_1 =====
 <eval_with_key>.0 class GraphModule(torch.nn.Module):
    def forward(self):
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197, code: tensor = torch.as_tensor(obj)
        as_tensor = torch.as_tensor(5)
        
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207, code: tensor = torch.as_tensor(obj, dtype=torch_dtype)
        as_tensor_1 = torch.as_tensor(5, dtype = torch.int64)
        return (as_tensor_1,)
        

[2023-07-06 17:24:53,571] torch._dynamo.output_graph.__graph: [DEBUG] TRACED GRAPH
 __compiled_fn_1 <eval_with_key>.0 opcode         name         target                                                        args               kwargs
-------------  -----------  ------------------------------------------------------------  -----------------  ----------------------
call_function  as_tensor    <built-in method as_tensor of type object at 0x7fb400075b80>  (5,)               {}
call_function  as_tensor_1  <built-in method as_tensor of type object at 0x7fb400075b80>  (5,)               {'dtype': torch.int64}
output         output       output                                                        ((as_tensor_1,),)  {}

[2023-07-06 17:24:53,576] torch._dynamo.output_graph: [INFO] Step 2: calling compiler function inductor
[2023-07-06 17:24:58,988] torch._dynamo.output_graph: [INFO] Step 2: done compiler function inductor
[2023-07-06 17:24:58,991] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_type_id(L['obj'], 94921532607424)
  L['obj'] == 5
  ___check_obj_id(L['copy'], 94921532483840)
  ___check_obj_id(L['dtype'], 94921532595712)
  ___check_type_id(L['ndmin'], 94921532607424)
  L['ndmin'] == 0
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
  str(G['__import_torch_np_dot__dtypes_impl'].torch.bool) == 'torch.bool'
  ___check_type_id(G['__import_torch_np_dot__dtypes_impl'].default_dtypes, 94921618531072)
  len(G['__import_torch_np_dot__dtypes_impl'].default_dtypes) == 3
  str(G['__import_torch_np_dot__dtypes_impl'].default_dtypes[0]) == 'torch.float64'
  str(G['__import_torch_np_dot__dtypes_impl'].default_dtypes[1]) == 'torch.complex128'
  str(G['__import_torch_np_dot__dtypes_impl'].default_dtypes[2]) == 'torch.int64'
[2023-07-06 17:24:58,991] torch._dynamo.eval_frame: [DEBUG] skipping _fn /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/eval_frame.py
[2023-07-06 17:24:58,992] torch._dynamo.eval_frame: [DEBUG] skipping nothing /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/eval_frame.py
[2023-07-06 17:24:58,992] torch._dynamo.eval_frame: [DEBUG] skipping __exit__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:58,992] torch._dynamo.eval_frame: [DEBUG] skipping __exit__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/contextlib.py
[2023-07-06 17:24:58,992] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing __init__ /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:172
[2023-07-06 17:24:58,994] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['t'] () [] []
[2023-07-06 17:24:58,994] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:173
[2023-07-06 17:24:58,994] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:58,994] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TensorVariable()]
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 20 [ConstantVariable(bool)]
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:175
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [BuiltinVariable(isinstance)]
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:58,995] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 40 [ConstantVariable(bool)]
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:176
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [TensorVariable()]
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_ATTR tensor [TensorVariable(), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 48 []
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:178
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:58,996] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:58,997] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call __init__                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 172
[2023-07-06 17:24:58,997] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* <dictcomp>             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 209
[2023-07-06 17:24:58,997] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* normalize_dtype             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 65
[2023-07-06 17:24:58,997] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* dtype             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py 254
[2023-07-06 17:24:58,997] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing __init__ /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:261
[2023-07-06 17:24:58,999] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:263
[2023-07-06 17:24:58,999] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:58,999] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg [BuiltinVariable(isinstance)]
[2023-07-06 17:24:58,999] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), UserDefinedClassVariable()]
[2023-07-06 17:24:58,999] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [BuiltinVariable(isinstance), UserDefinedClassVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:58,999] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), UserDefinedClassVariable(), TorchVariable(<class 'torch.dtype'>)]
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 22 [ConstantVariable(bool)]
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:265
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), UserDefinedClassVariable()]
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), UserDefinedClassVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,000] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), UserDefinedClassVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,001] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 46 [ConstantVariable(bool)]
[2023-07-06 17:24:59,001] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:268
[2023-07-06 17:24:59,001] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL issubclass_ []
[2023-07-06 17:24:59,001] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg [UserFunctionVariable()]
[2023-07-06 17:24:59,001] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL generic [UserFunctionVariable(), UserDefinedClassVariable()]
[2023-07-06 17:24:59,001] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), UserDefinedClassVariable(), UserDefinedClassVariable()]
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object issubclass_ at 0x7fb3a44c5b30, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py", line 409>
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:410
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] TRACE SETUP_FINALLY 14 []
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:411
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL issubclass []
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg [BuiltinVariable(issubclass)]
[2023-07-06 17:24:59,002] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST klass [BuiltinVariable(issubclass), UserDefinedClassVariable()]
[2023-07-06 17:24:59,003] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(issubclass), UserDefinedClassVariable(), UserDefinedClassVariable()]
[2023-07-06 17:24:59,003] torch._dynamo.symbolic_convert: [DEBUG] FAILED INLINING <code object issubclass_ at 0x7fb3a44c5b30, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py", line 409>
[2023-07-06 17:24:59,003] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:59,003] torch._dynamo.symbolic_convert: [DEBUG] break_graph_if_unsupported triggered compile
Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1100, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/functions.py", line 288, in call_function
    return super().call_function(tx, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/functions.py", line 121, in call_function
    return tx.inline_user_function_return(
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 595, in inline_user_function_return
    result = InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 2134, in inline_call
    return cls.inline_call_(parent, func, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 2231, in inline_call_
    tracer.run()
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 708, in run
    and self.step()
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 668, in step
    getattr(self, inst.opname)(inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1100, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/builtin.py", line 625, in call_function
    return super().call_function(tx, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/base.py", line 306, in call_function
    unimplemented(f"call_function {self} {args} {kwargs}")
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/exc.py", line 141, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: call_function BuiltinVariable(issubclass) [UserDefinedClassVariable(), UserDefinedClassVariable()] {}
[2023-07-06 17:24:59,003] torch._dynamo.symbolic_convert.__graph_breaks: [DEBUG] Graph break: call_function BuiltinVariable(issubclass) [UserDefinedClassVariable(), UserDefinedClassVariable()] {} from user code at   File "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py", line 268, in __init__
    elif issubclass_(arg, generic):
  File "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py", line 411, in issubclass_
    return issubclass(arg, klass)

[2023-07-06 17:24:59,004] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:59,004] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='call_function BuiltinVariable(issubclass) [UserDefinedClassVariable(), UserDefinedClassVariable()] {}', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py, line 268 in __init__>, <FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py, line 411 in issubclass_>], graph_break=True)
[2023-07-06 17:24:59,007] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_obj_id(L['arg'], 94921618590528)
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
[2023-07-06 17:24:59,007] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* issubclass_             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py 409
[2023-07-06 17:24:59,007] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing <resume in __init__> /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:268
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ___stack0 []
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 58 [ConstantVariable(bool)]
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 66 [ConstantVariable(bool)]
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:269
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg []
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST sctype [UserDefinedClassVariable()]
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 112 []
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:278
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST sctype []
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [UserDefinedClassVariable()]
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_ATTR _scalar_type [UserDefinedClassVariable(), UserDefinedObjectVariable(DType)]
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,009] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,009] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call <resume in __init__>                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py 268
[2023-07-06 17:24:59,010] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* torch_dtype             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py 306
[2023-07-06 17:24:59,010] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing arange /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:346
[2023-07-06 17:24:59,011] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['start'] () [] []
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:354
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST step []
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 12 [ConstantVariable(bool)]
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:356
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST stop []
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,012] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 32 [ConstantVariable(bool)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST start []
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TensorVariable()]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 32 [ConstantVariable(bool)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:358
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST stop []
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 50 [ConstantVariable(bool)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:361
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 []
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST start [ConstantVariable(int)]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE ROT_TWO None [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,013] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST start [TensorVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST stop [TensorVariable()]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:362
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST start []
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(int)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [ConstantVariable(int), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 62 [ConstantVariable(bool)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:366
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [ConstantVariable(dtype), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 78 [ConstantVariable(bool)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py:369
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST <code object <genexpr> at 0x7fb3a4466920, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py", line 369> []
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST arange.<locals>.<genexpr> [ConstantVariable(code)]
[2023-07-06 17:24:59,014] torch._dynamo.symbolic_convert: [DEBUG] TRACE MAKE_FUNCTION 0 [ConstantVariable(code), ConstantVariable(str)]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST start [NestedUserFunctionVariable()]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST stop [NestedUserFunctionVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST step [NestedUserFunctionVariable(), ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] TRACE BUILD_TUPLE 3 [NestedUserFunctionVariable(), ConstantVariable(int), TensorVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] TRACE GET_ITER None [NestedUserFunctionVariable(), TupleVariable()]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [NestedUserFunctionVariable(), ListIteratorVariable()]
[2023-07-06 17:24:59,016] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object <genexpr> at 0x7fb3a4466920, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py", line 369>
[2023-07-06 17:24:59,017] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST .0 []
[2023-07-06 17:24:59,017] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 20 [ListIteratorVariable()]
[2023-07-06 17:24:59,017] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST x [ListIteratorVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,017] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _util [ListIteratorVariable()]
[2023-07-06 17:24:59,017] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _coerce_to_tensor [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,017] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x [ListIteratorVariable(), UserFunctionVariable()]
[2023-07-06 17:24:59,018] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [ListIteratorVariable(), UserFunctionVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,018] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,018] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:59,018] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,018] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,018] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), ConstantVariable(int)]
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,019] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,020] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:59,021] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,021] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:206
[2023-07-06 17:24:59,021] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,021] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR get_default_dtype_for [PythonModuleVariable()]
[2023-07-06 17:24:59,021] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,021] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserFunctionVariable(), TorchVariable(torch.int64)]
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:25
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR bool [TorchVariable(torch.int64), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,022] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [TorchVariable(torch.int64), ConstantVariable(dtype)]
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 14 [ConstantVariable(bool)]
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:27
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_complex [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:29
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_floating_point [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 38 [ConstantVariable(bool)]
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:32
[2023-07-06 17:24:59,023] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL default_dtypes []
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR int_dtype [NamedTupleVariable()]
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST torch_dtype [ConstantVariable(dtype)]
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,024] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,025] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,025] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST torch_dtype [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:59,025] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype)]
[2023-07-06 17:24:59,025] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype), ConstantVariable(tuple)]
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,026] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,027] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE YIELD_VALUE None [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [ListIteratorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 2 [ListIteratorVariable()]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 20 [ListIteratorVariable()]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST x [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _util [ListIteratorVariable()]
[2023-07-06 17:24:59,028] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _coerce_to_tensor [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,029] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x [ListIteratorVariable(), UserFunctionVariable()]
[2023-07-06 17:24:59,029] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [ListIteratorVariable(), UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,029] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,029] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:59,029] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,029] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:195
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj []
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 54 []
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:59,030] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:59,031] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:59,032] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:59,032] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,034] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE YIELD_VALUE None [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [ListIteratorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 2 [ListIteratorVariable()]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 20 [ListIteratorVariable()]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST x [ListIteratorVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _util [ListIteratorVariable()]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _coerce_to_tensor [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x [ListIteratorVariable(), UserFunctionVariable()]
[2023-07-06 17:24:59,035] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [ListIteratorVariable(), UserFunctionVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,036] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,036] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:59,036] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,036] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,036] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), ConstantVariable(int)]
[2023-07-06 17:24:59,036] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,037] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:59,038] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,038] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:206
[2023-07-06 17:24:59,038] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,038] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR get_default_dtype_for [PythonModuleVariable()]
[2023-07-06 17:24:59,039] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,039] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,039] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserFunctionVariable(), TorchVariable(torch.int64)]
[2023-07-06 17:24:59,039] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,039] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:25
[2023-07-06 17:24:59,039] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR bool [TorchVariable(torch.int64), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [TorchVariable(torch.int64), ConstantVariable(dtype)]
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 14 [ConstantVariable(bool)]
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:27
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_complex [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:29
[2023-07-06 17:24:59,040] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_floating_point [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 38 [ConstantVariable(bool)]
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:32
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL default_dtypes []
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR int_dtype [NamedTupleVariable()]
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,041] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST torch_dtype [ConstantVariable(dtype)]
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST torch_dtype [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype)]
[2023-07-06 17:24:59,042] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype), ConstantVariable(tuple)]
[2023-07-06 17:24:59,043] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,043] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:59,043] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,043] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,043] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,043] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:59,044] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE YIELD_VALUE None [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [ListIteratorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 2 [ListIteratorVariable()]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 20 [ListIteratorVariable()]
[2023-07-06 17:24:59,045] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,046] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,046] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object <genexpr> at 0x7fb3a4466920, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py", line 369>
[2023-07-06 17:24:59,046] torch._dynamo.symbolic_convert: [DEBUG] TRACE UNPACK_SEQUENCE 3 [ListIteratorVariable()]
[2023-07-06 17:24:59,046] torch._dynamo.symbolic_convert: [DEBUG] step triggered compile
Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 668, in step
    getattr(self, inst.opname)(inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1425, in UNPACK_SEQUENCE
    unimplemented(f"UNPACK_SEQUENCE {seq}")
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/exc.py", line 141, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: UNPACK_SEQUENCE ListIteratorVariable()
[2023-07-06 17:24:59,046] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 4 nodes
[2023-07-06 17:24:59,046] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='step_unsupported', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_funcs_impl.py, line 369 in arange>], graph_break=True)
[2023-07-06 17:24:59,049] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_type_id(L['step'], 94921532607424)
  L['step'] == 1
  ___check_obj_id(L['stop'], 94921532595712)
  str(L['dtype']) == 'torch.int8'
  hasattr(L['start'], '_dynamo_dynamic_indices') == False
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
[2023-07-06 17:24:59,049] torch._dynamo.convert_frame: [INFO] converting frame raised unsupported, leaving it unconverted
[2023-07-06 17:24:59,050] torch._dynamo.convert_frame.__recompiles: [DEBUG] ('Recompiling function _coerce_to_tensor in /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py', "triggered by the following guard failure: L['obj'] == 5")
[2023-07-06 17:24:59,050] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing _coerce_to_tensor /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:167
[2023-07-06 17:24:59,050] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:59,050] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,050] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), ConstantVariable(int)]
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(int), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,051] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,052] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,052] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:59,052] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,053] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:206
[2023-07-06 17:24:59,053] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,053] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR get_default_dtype_for [PythonModuleVariable()]
[2023-07-06 17:24:59,053] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,053] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,053] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserFunctionVariable(), TorchVariable(torch.int64)]
[2023-07-06 17:24:59,054] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,054] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:25
[2023-07-06 17:24:59,054] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,054] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,055] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR bool [TorchVariable(torch.int64), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [TorchVariable(torch.int64), ConstantVariable(dtype)]
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 14 [ConstantVariable(bool)]
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:27
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_complex [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:29
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,056] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_floating_point [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 38 [ConstantVariable(bool)]
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:32
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL default_dtypes []
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR int_dtype [NamedTupleVariable()]
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST torch_dtype [ConstantVariable(dtype)]
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207
[2023-07-06 17:24:59,057] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,058] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,058] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,058] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST torch_dtype [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int)]
[2023-07-06 17:24:59,058] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype)]
[2023-07-06 17:24:59,058] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(int), ConstantVariable(dtype), ConstantVariable(tuple)]
[2023-07-06 17:24:59,059] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,059] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:59,059] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,059] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,059] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,059] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:59,060] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo done tracing _coerce_to_tensor (RETURN_VALUE)
[2023-07-06 17:24:59,061] torch._dynamo.symbolic_convert: [DEBUG] RETURN_VALUE triggered compile
[2023-07-06 17:24:59,061] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='return_value', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py, line 221 in _coerce_to_tensor>], graph_break=False)
[2023-07-06 17:24:59,062] torch._dynamo.output_graph.__graph_code: [DEBUG] TRACED GRAPH
 ===== __compiled_fn_3 =====
 <eval_with_key>.111 class GraphModule(torch.nn.Module):
    def forward(self):
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197, code: tensor = torch.as_tensor(obj)
        as_tensor = torch.as_tensor(0)
        
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207, code: tensor = torch.as_tensor(obj, dtype=torch_dtype)
        as_tensor_1 = torch.as_tensor(0, dtype = torch.int64)
        return (as_tensor_1,)
        

[2023-07-06 17:24:59,062] torch._dynamo.output_graph.__graph: [DEBUG] TRACED GRAPH
 __compiled_fn_3 <eval_with_key>.111 opcode         name         target                                                        args               kwargs
-------------  -----------  ------------------------------------------------------------  -----------------  ----------------------
call_function  as_tensor    <built-in method as_tensor of type object at 0x7fb400075b80>  (0,)               {}
call_function  as_tensor_1  <built-in method as_tensor of type object at 0x7fb400075b80>  (0,)               {'dtype': torch.int64}
output         output       output                                                        ((as_tensor_1,),)  {}

[2023-07-06 17:24:59,064] torch._dynamo.output_graph: [INFO] Step 2: calling compiler function inductor
[2023-07-06 17:24:59,084] torch._dynamo.output_graph: [INFO] Step 2: done compiler function inductor
[2023-07-06 17:24:59,087] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_type_id(L['obj'], 94921532607424)
  L['obj'] == 0
  ___check_obj_id(L['copy'], 94921532483840)
  ___check_obj_id(L['dtype'], 94921532595712)
  ___check_type_id(L['ndmin'], 94921532607424)
  L['ndmin'] == 0
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
  str(G['__import_torch_np_dot__dtypes_impl'].torch.bool) == 'torch.bool'
  ___check_type_id(G['__import_torch_np_dot__dtypes_impl'].default_dtypes, 94921618531072)
  len(G['__import_torch_np_dot__dtypes_impl'].default_dtypes) == 3
  str(G['__import_torch_np_dot__dtypes_impl'].default_dtypes[0]) == 'torch.float64'
  str(G['__import_torch_np_dot__dtypes_impl'].default_dtypes[1]) == 'torch.complex128'
  str(G['__import_torch_np_dot__dtypes_impl'].default_dtypes[2]) == 'torch.int64'
[2023-07-06 17:24:59,087] torch._dynamo.convert_frame.__recompiles: [DEBUG] ('Recompiling function _coerce_to_tensor in /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py', "triggered by the following guard failure: ___check_type_id(L['obj'], 94921532607424)")
[2023-07-06 17:24:59,087] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing _coerce_to_tensor /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:167
[2023-07-06 17:24:59,088] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['obj'] () [] []
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,089] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:195
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj []
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 54 []
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,090] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:59,091] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,093] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,093] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,094] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call _coerce_to_tensor                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py 167
[2023-07-06 17:24:59,094] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing cast_if_needed /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:30
[2023-07-06 17:24:59,095] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['tensor'] () [] []
[2023-07-06 17:24:59,095] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,095] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,095] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,096] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call cast_if_needed                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py 30
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing get_default_dtype_for /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:23
[2023-07-06 17:24:59,096] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:25
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [ConstantVariable(dtype)]
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR bool [ConstantVariable(dtype), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [ConstantVariable(dtype), ConstantVariable(dtype)]
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 14 [ConstantVariable(bool)]
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:27
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,097] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_complex [ConstantVariable(dtype)]
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:29
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR is_floating_point [ConstantVariable(dtype)]
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 38 [ConstantVariable(bool)]
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:32
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL default_dtypes []
[2023-07-06 17:24:59,098] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR int_dtype [NamedTupleVariable()]
[2023-07-06 17:24:59,099] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,099] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call get_default_dtype_for                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py 23
[2023-07-06 17:24:59,099] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing result_type_impl /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:42
[2023-07-06 17:24:59,099] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['tensors'][0] () [] []
[2023-07-06 17:24:59,100] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['tensors'][1] () [] []
[2023-07-06 17:24:59,100] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['tensors'][2] () [] []
[2023-07-06 17:24:59,101] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['tensors'][3] (1,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,102] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:44
[2023-07-06 17:24:59,102] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors []
[2023-07-06 17:24:59,102] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [TupleVariable()]
[2023-07-06 17:24:59,102] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [TupleVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,102] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [TensorVariable()]
[2023-07-06 17:24:59,104] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtyp [TorchVariable(torch.int64)]
[2023-07-06 17:24:59,104] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:45
[2023-07-06 17:24:59,104] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL len []
[2023-07-06 17:24:59,104] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors [BuiltinVariable(len)]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [BuiltinVariable(len), TupleVariable()]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 1 [ConstantVariable(int)]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:48
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors []
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 1 [TupleVariable()]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TupleVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,105] torch._dynamo.symbolic_convert: [DEBUG] TRACE BUILD_SLICE 2 [TupleVariable(), ConstantVariable(int), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [TupleVariable(), SliceVariable()]
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE GET_ITER None [TupleVariable()]
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 60 [ListIteratorVariable()]
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST curr [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:49
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _cd [ListIteratorVariable()]
[2023-07-06 17:24:59,106] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _result_type_dict [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,107] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtyp [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,107] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), TorchVariable(torch.int64)]
[2023-07-06 17:24:59,108] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST curr [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,108] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [ListIteratorVariable(), UserDefinedObjectVariable(dict), TensorVariable()]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), TorchVariable(torch.int64)]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtyp [ListIteratorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 38 [ListIteratorVariable()]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:48
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 60 [ListIteratorVariable()]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST curr [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:49
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _cd [ListIteratorVariable()]
[2023-07-06 17:24:59,110] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _result_type_dict [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,111] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtyp [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,111] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), ConstantVariable(dtype)]
[2023-07-06 17:24:59,111] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST curr [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,111] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [ListIteratorVariable(), UserDefinedObjectVariable(dict), TensorVariable()]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), TorchVariable(torch.int64)]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtyp [ListIteratorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 38 [ListIteratorVariable()]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:48
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 60 [ListIteratorVariable()]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST curr [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:49
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _cd [ListIteratorVariable()]
[2023-07-06 17:24:59,113] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _result_type_dict [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,114] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtyp [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,114] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), ConstantVariable(dtype)]
[2023-07-06 17:24:59,114] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST curr [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,114] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [ListIteratorVariable(), UserDefinedObjectVariable(dict), TensorVariable()]
[2023-07-06 17:24:59,116] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), TorchVariable(torch.int8)]
[2023-07-06 17:24:59,116] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtyp [ListIteratorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,116] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 38 [ListIteratorVariable()]
[2023-07-06 17:24:59,116] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:48
[2023-07-06 17:24:59,117] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 60 [ListIteratorVariable()]
[2023-07-06 17:24:59,117] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:51
[2023-07-06 17:24:59,117] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtyp []
[2023-07-06 17:24:59,117] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,117] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call result_type_impl                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py 42
[2023-07-06 17:24:59,117] torch._dynamo.eval_frame: [DEBUG] skipping __call__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/weakref.py
[2023-07-06 17:24:59,117] torch._dynamo.eval_frame: [DEBUG] skipping del_ten /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_subclasses/meta_utils.py
[2023-07-06 17:24:59,117] torch._dynamo.eval_frame: [DEBUG] skipping pop /home/br/mambaforge/envs/torch_nightly/lib/python3.8/weakref.py
[2023-07-06 17:24:59,117] torch._dynamo.eval_frame: [DEBUG] skipping __hash__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/utils/weak.py
[2023-07-06 17:24:59,117] torch._dynamo.eval_frame: [DEBUG] skipping expired /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/multiprocessing/reductions.py
[2023-07-06 17:24:59,117] torch._dynamo.eval_frame: [DEBUG] skipping _expired /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/storage.py
[2023-07-06 17:24:59,118] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing wrap_tensors /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:167
[2023-07-06 17:24:59,118] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['result'] (5,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,119] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:168
[2023-07-06 17:24:59,119] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 1 []
[2023-07-06 17:24:59,119] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('ndarray',) [ConstantVariable(int)]
[2023-07-06 17:24:59,119] torch._dynamo.symbolic_convert: [DEBUG] TRACE IMPORT_NAME _ndarray [ConstantVariable(int), ConstantVariable(tuple)]
[2023-07-06 17:24:59,119] torch._dynamo.symbolic_convert: [DEBUG] TRACE IMPORT_FROM ndarray [PythonModuleVariable()]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndarray [PythonModuleVariable(), UserDefinedClassVariable()]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [PythonModuleVariable()]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:170
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,120] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 32 [ConstantVariable(bool)]
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:171
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndarray []
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result [UserDefinedClassVariable()]
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserDefinedClassVariable(), TensorVariable()]
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object __init__ at 0x7fb3a442e710, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 172>
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:173
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TensorVariable()]
[2023-07-06 17:24:59,121] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 20 [ConstantVariable(bool)]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:175
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 40 [ConstantVariable(bool)]
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:176
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:59,122] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [TensorVariable()]
[2023-07-06 17:24:59,123] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_ATTR tensor [TensorVariable(), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,123] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 48 []
[2023-07-06 17:24:59,123] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,123] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,123] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object __init__ at 0x7fb3a442e710, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 172>
[2023-07-06 17:24:59,123] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,123] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call wrap_tensors                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 167
[2023-07-06 17:24:59,123] torch._dynamo.eval_frame: [DEBUG] skipping __del__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/multiprocessing/reductions.py
[2023-07-06 17:24:59,123] torch._dynamo.eval_frame: [DEBUG] skipping _free_weak_ref /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/storage.py
[2023-07-06 17:24:59,123] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* <resume in test_dtype_passthrough>             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/tests/numpy_tests/core/test_dlpack.py 46
[2023-07-06 17:24:59,124] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing from_dlpack /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:527
[2023-07-06 17:24:59,124] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:528
[2023-07-06 17:24:59,124] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,125] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR from_dlpack [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,125] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x [TorchVariable(<function from_dlpack at 0x7fb3a73831f0>)]
[2023-07-06 17:24:59,125] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<function from_dlpack at 0x7fb3a73831f0>), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,125] torch._dynamo.symbolic_convert: [DEBUG] break_graph_if_unsupported triggered compile
Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/utils.py", line 480, in proxy_args_kwargs
    proxy_args = tuple(arg.as_proxy() for arg in args)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/utils.py", line 480, in <genexpr>
    proxy_args = tuple(arg.as_proxy() for arg in args)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/base.py", line 282, in as_proxy
    raise NotImplementedError(str(self))
NotImplementedError: UserDefinedObjectVariable(ndarray)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1100, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/torch.py", line 630, in call_function
    *proxy_args_kwargs(args, kwargs),
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/utils.py", line 487, in proxy_args_kwargs
    raise unimplemented(
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/exc.py", line 141, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: call_function args: UserDefinedObjectVariable(ndarray) 
[2023-07-06 17:24:59,126] torch._dynamo.symbolic_convert.__graph_breaks: [DEBUG] Graph break: call_function args: UserDefinedObjectVariable(ndarray)  from user code at   File "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 528, in from_dlpack
    t = torch.from_dlpack(x)

[2023-07-06 17:24:59,126] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:59,126] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='call_function args: UserDefinedObjectVariable(ndarray) ', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py, line 528 in from_dlpack>], graph_break=True)
[2023-07-06 17:24:59,128] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_type_id(L['x'], 94921618672576)
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
[2023-07-06 17:24:59,128] torch._dynamo.eval_frame: [DEBUG] skipping from_dlpack /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/utils/dlpack.py
[2023-07-06 17:24:59,128] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* __dlpack_device__             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 461
[2023-07-06 17:24:59,128] torch._dynamo.eval_frame: [DEBUG] skipping __dlpack_device__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_tensor.py
[2023-07-06 17:24:59,128] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* __dlpack__             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 458
[2023-07-06 17:24:59,128] torch._dynamo.eval_frame: [DEBUG] skipping __dlpack__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_tensor.py
[2023-07-06 17:24:59,128] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing <resume in from_dlpack> /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:528
[2023-07-06 17:24:59,129] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['___stack0'] (5,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,129] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ___stack0 []
[2023-07-06 17:24:59,129] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 12 [TensorVariable()]
[2023-07-06 17:24:59,129] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST t [TensorVariable()]
[2023-07-06 17:24:59,129] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:529
[2023-07-06 17:24:59,130] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL ndarray []
[2023-07-06 17:24:59,130] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [UserDefinedClassVariable()]
[2023-07-06 17:24:59,130] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserDefinedClassVariable(), TensorVariable()]
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object __init__ at 0x7fb3a442e710, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 172>
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:173
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TensorVariable()]
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 20 [ConstantVariable(bool)]
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:175
[2023-07-06 17:24:59,131] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 40 [ConstantVariable(bool)]
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:176
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [TensorVariable()]
[2023-07-06 17:24:59,132] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_ATTR tensor [TensorVariable(), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,133] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 48 []
[2023-07-06 17:24:59,133] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,133] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,133] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object __init__ at 0x7fb3a442e710, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 172>
[2023-07-06 17:24:59,133] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,133] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call <resume in from_dlpack>                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 528
[2023-07-06 17:24:59,133] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* dtype             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 229
[2023-07-06 17:24:59,133] torch._dynamo.convert_frame.__recompiles: [DEBUG] ('Recompiling function __init__ in /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py', "triggered by the following guard failure: ___check_obj_id(L['arg'], 94921618590528)")
[2023-07-06 17:24:59,134] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing __init__ /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:261
[2023-07-06 17:24:59,134] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:263
[2023-07-06 17:24:59,134] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), ConstantVariable(dtype)]
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [BuiltinVariable(isinstance), ConstantVariable(dtype), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(dtype), TorchVariable(<class 'torch.dtype'>)]
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 22 [ConstantVariable(bool)]
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:264
[2023-07-06 17:24:59,135] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _torch_dtypes []
[2023-07-06 17:24:59,136] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST arg [UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,136] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [UserDefinedObjectVariable(dict), ConstantVariable(dtype)]
[2023-07-06 17:24:59,136] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST sctype [UserDefinedClassVariable()]
[2023-07-06 17:24:59,136] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 108 []
[2023-07-06 17:24:59,136] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:278
[2023-07-06 17:24:59,137] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST sctype []
[2023-07-06 17:24:59,137] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [UserDefinedClassVariable()]
[2023-07-06 17:24:59,137] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_ATTR _scalar_type [UserDefinedClassVariable(), UserDefinedObjectVariable(DType)]
[2023-07-06 17:24:59,137] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,137] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,137] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call __init__                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py 261
[2023-07-06 17:24:59,137] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* __eq__             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py 297
[2023-07-06 17:24:59,137] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* assert_array_equal             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/testing/utils.py 731
[2023-07-06 17:24:59,138] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* assert_array_compare             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/testing/utils.py 550
[2023-07-06 17:24:59,138] torch._dynamo.eval_frame: [DEBUG] skipping _handle_fromlist <frozen importlib._bootstrap>
[2023-07-06 17:24:59,138] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* ndim             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 225
[2023-07-06 17:24:59,138] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* shape             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py 217
[2023-07-06 17:24:59,138] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing __new__ /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:22
[2023-07-06 17:24:59,139] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:26
[2023-07-06 17:24:59,139] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 1 []
[2023-07-06 17:24:59,139] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('_ndarray',) [ConstantVariable(int)]
[2023-07-06 17:24:59,139] torch._dynamo.symbolic_convert: [DEBUG] TRACE IMPORT_NAME  [ConstantVariable(int), ConstantVariable(tuple)]
[2023-07-06 17:24:59,139] torch._dynamo.symbolic_convert: [DEBUG] TRACE IMPORT_FROM _ndarray [PythonModuleVariable()]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST _ndarray [PythonModuleVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [PythonModuleVariable()]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:28
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST value [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL str [BuiltinVariable(isinstance), ConstantVariable(bool)]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(bool), BuiltinVariable(str)]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 48 [ConstantVariable(bool)]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:31
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST value [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST _ndarray [BuiltinVariable(isinstance), ConstantVariable(bool)]
[2023-07-06 17:24:59,140] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndarray [BuiltinVariable(isinstance), ConstantVariable(bool), PythonModuleVariable()]
[2023-07-06 17:24:59,141] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(bool), UserDefinedClassVariable()]
[2023-07-06 17:24:59,141] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 68 [ConstantVariable(bool)]
[2023-07-06 17:24:59,141] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:34
[2023-07-06 17:24:59,141] torch._dynamo.symbolic_convert: [DEBUG] TRACE SETUP_FINALLY 90 []
[2023-07-06 17:24:59,141] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:35
[2023-07-06 17:24:59,141] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _util []
[2023-07-06 17:24:59,142] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _coerce_to_tensor [PythonModuleVariable()]
[2023-07-06 17:24:59,142] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST value [UserFunctionVariable()]
[2023-07-06 17:24:59,142] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [UserFunctionVariable(), ConstantVariable(bool)]
[2023-07-06 17:24:59,142] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR torch_dtype [UserFunctionVariable(), ConstantVariable(bool), UserDefinedClassVariable()]
[2023-07-06 17:24:59,142] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [UserFunctionVariable(), ConstantVariable(bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,142] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [UserFunctionVariable(), ConstantVariable(bool), ConstantVariable(dtype), ConstantVariable(tuple)]
[2023-07-06 17:24:59,143] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,143] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:194
[2023-07-06 17:24:59,143] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,143] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,143] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), ConstantVariable(bool)]
[2023-07-06 17:24:59,143] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), ConstantVariable(bool), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), ConstantVariable(bool), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 18 [ConstantVariable(bool)]
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,144] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(bool)]
[2023-07-06 17:24:59,145] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,145] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:206
[2023-07-06 17:24:59,145] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,146] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR get_default_dtype_for [PythonModuleVariable()]
[2023-07-06 17:24:59,146] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,146] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,146] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserFunctionVariable(), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,146] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:25
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR bool [TorchVariable(torch.bool), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [TorchVariable(torch.bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 14 [ConstantVariable(bool)]
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:26
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object get_default_dtype_for at 0x7fb3a44af450, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 23>
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST torch_dtype [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207
[2023-07-06 17:24:59,147] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch []
[2023-07-06 17:24:59,148] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR as_tensor [TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,148] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST obj [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,148] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST torch_dtype [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(bool)]
[2023-07-06 17:24:59,148] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('dtype',) [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(bool), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,148] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 2 [TorchVariable(<built-in method as_tensor of type object at 0x7fb400075b80>), ConstantVariable(bool), TorchVariable(torch.bool), ConstantVariable(tuple)]
[2023-07-06 17:24:59,149] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,149] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:210
[2023-07-06 17:24:59,149] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,149] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserFunctionVariable()]
[2023-07-06 17:24:59,149] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,149] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(dtype), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [TensorVariable()]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP != [TorchVariable(torch.bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,150] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:213
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndmin []
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [ConstantVariable(int)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndim [ConstantVariable(int), TensorVariable()]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBTRACT None [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST ndim_extra [ConstantVariable(int)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:214
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST ndim_extra []
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [ConstantVariable(int)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP > [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,151] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:218
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST copy []
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 114 [ConstantVariable(bool)]
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:221
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object _coerce_to_tensor at 0x7fb3a44bba80, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 167>
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST tensor [TensorVariable()]
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_BLOCK None []
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 150 []
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py:50
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST _ndarray []
[2023-07-06 17:24:59,152] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR ndarray [PythonModuleVariable()]
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor [UserDefinedClassVariable()]
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [UserDefinedClassVariable(), TensorVariable()]
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object __init__ at 0x7fb3a442e710, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 172>
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:173
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TensorVariable()]
[2023-07-06 17:24:59,153] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 20 [ConstantVariable(bool)]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:175
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 40 [ConstantVariable(bool)]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:176
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t []
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [TensorVariable()]
[2023-07-06 17:24:59,154] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_ATTR tensor [TensorVariable(), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 48 []
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object __init__ at 0x7fb3a442e710, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py", line 172>
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo done tracing __new__ (RETURN_VALUE)
[2023-07-06 17:24:59,155] torch._dynamo.symbolic_convert: [DEBUG] RETURN_VALUE triggered compile
[2023-07-06 17:24:59,155] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='return_value', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes.py, line 50 in __new__>], graph_break=False)
[2023-07-06 17:24:59,156] torch._dynamo.output_graph.__graph_code: [DEBUG] TRACED GRAPH
 ===== __compiled_fn_5 =====
 <eval_with_key>.117 class GraphModule(torch.nn.Module):
    def forward(self):
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:197, code: tensor = torch.as_tensor(obj)
        as_tensor = torch.as_tensor(False)
        
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:207, code: tensor = torch.as_tensor(obj, dtype=torch_dtype)
        as_tensor_1 = torch.as_tensor(False, dtype = torch.bool)
        return (as_tensor_1,)
        

[2023-07-06 17:24:59,156] torch._dynamo.output_graph.__graph: [DEBUG] TRACED GRAPH
 __compiled_fn_5 <eval_with_key>.117 opcode         name         target                                                        args               kwargs
-------------  -----------  ------------------------------------------------------------  -----------------  ---------------------
call_function  as_tensor    <built-in method as_tensor of type object at 0x7fb400075b80>  (False,)           {}
call_function  as_tensor_1  <built-in method as_tensor of type object at 0x7fb400075b80>  (False,)           {'dtype': torch.bool}
output         output       output                                                        ((as_tensor_1,),)  {}

[2023-07-06 17:24:59,157] torch._dynamo.output_graph: [INFO] Step 2: calling compiler function inductor
[2023-07-06 17:24:59,176] torch._dynamo.output_graph: [INFO] Step 2: done compiler function inductor
[2023-07-06 17:24:59,178] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___check_obj_id(L['self'], 94921618601088)
  ___check_obj_id(L['value'], 94921532483840)
  str(L['self'].torch_dtype) == 'torch.bool'
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
  str(G['__import_torch_np_dot__dtypes_impl'].torch.bool) == 'torch.bool'
[2023-07-06 17:24:59,178] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* func_assert_same_pos             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/testing/utils.py 575
[2023-07-06 17:24:59,178] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing wrapped /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:227
[2023-07-06 17:24:59,179] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['x'] (5,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:241
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 22 [ConstantVariable(bool)]
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:243
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF torch_func []
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x [TorchVariable(<built-in method isnan of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,180] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [TorchVariable(<built-in method isnan of type object at 0x7fb400075b80>), TensorVariable()]
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST result [TensorVariable()]
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:244
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _ufunc_postprocess []
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result [UserFunctionVariable()]
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST out [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST casting [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 3 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType), ConstantVariable(str)]
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object _ufunc_postprocess at 0x7fb3a4433df0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py", line 19>
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:20
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST out []
[2023-07-06 17:24:59,182] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 40 [ConstantVariable(bool)]
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:23
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result []
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object _ufunc_postprocess at 0x7fb3a4433df0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py", line 19>
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST result [TensorVariable()]
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:245
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result []
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo done tracing wrapped (RETURN_VALUE)
[2023-07-06 17:24:59,183] torch._dynamo.symbolic_convert: [DEBUG] RETURN_VALUE triggered compile
[2023-07-06 17:24:59,183] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='return_value', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py, line 245 in wrapped>], graph_break=False)
[2023-07-06 17:24:59,184] torch._dynamo.output_graph.__graph_code: [DEBUG] TRACED GRAPH
 ===== __compiled_fn_6 =====
 <eval_with_key>.123 class GraphModule(torch.nn.Module):
    def forward(self, L_x_ : torch.Tensor):
        l_x_ = L_x_
        
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:243, code: result = torch_func(x)
        isnan = torch.isnan(l_x_);  l_x_ = None
        return (isnan,)
        

[2023-07-06 17:24:59,184] torch._dynamo.output_graph.__graph: [DEBUG] TRACED GRAPH
 __compiled_fn_6 <eval_with_key>.123 opcode         name    target                                                    args         kwargs
-------------  ------  --------------------------------------------------------  -----------  --------
placeholder    l_x_    L_x_                                                      ()           {}
call_function  isnan   <built-in method isnan of type object at 0x7fb400075b80>  (l_x_,)      {}
output         output  output                                                    ((isnan,),)  {}

[2023-07-06 17:24:59,185] torch._dynamo.output_graph: [INFO] Step 2: calling compiler function inductor
[2023-07-06 17:24:59,233] torch._dynamo.output_graph: [INFO] Step 2: done compiler function inductor
[2023-07-06 17:24:59,235] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  hasattr(L['x'], '_dynamo_dynamic_indices') == False
  ___check_obj_id(L['out'], 94921532595712)
  ___check_obj_id(L['dtype'], 94921532595712)
  ___check_obj_id(L['torch_func'], 140410631062048)
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
[2023-07-06 17:24:59,235] torch._dynamo.eval_frame: [DEBUG] skipping bind /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:59,235] torch._dynamo.eval_frame: [DEBUG] skipping _bind /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:59,235] torch._dynamo.eval_frame: [DEBUG] skipping default /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:59,235] torch._dynamo.eval_frame: [DEBUG] skipping __init__ /home/br/mambaforge/envs/torch_nightly/lib/python3.8/inspect.py
[2023-07-06 17:24:59,235] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing maybe_copy_to /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:143
[2023-07-06 17:24:59,236] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['result'] (5,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,236] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:145
[2023-07-06 17:24:59,236] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST out []
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 12 [ConstantVariable(bool)]
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:146
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result []
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,237] torch._dynamo.convert_frame: [DEBUG] Skipping frame because no content in function call maybe_copy_to                     /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 143
[2023-07-06 17:24:59,237] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing __eq__ /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:355
[2023-07-06 17:24:59,238] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:356
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE SETUP_FINALLY 16 []
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py:357
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _ufuncs []
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR equal [PythonModuleVariable()]
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST self [UserFunctionVariable()]
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST other [UserFunctionVariable(), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,239] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), UserDefinedObjectVariable(ndarray), UserDefinedObjectVariable(ndarray)]
[2023-07-06 17:24:59,240] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object wrapped at 0x7fb3a44bfb30, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py", line 191>
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:193
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL inspect []
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR signature [PythonModuleVariable()]
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF func [LambdaVariable()]
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [LambdaVariable(), UserFunctionVariable()]
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST sig [InspectSignatureVariable()]
[2023-07-06 17:24:59,241] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:194
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST sig []
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR parameters [InspectSignatureVariable()]
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_DEREF params [GetAttrVariable(InspectSignatureVariable(), parameters)]
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py:195
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL next []
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL iter [BuiltinVariable(next)]
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF params [BuiltinVariable(next), BuiltinVariable(iter)]
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR values [BuiltinVariable(next), BuiltinVariable(iter), GetAttrVariable(InspectSignatureVariable(), parameters)]
[2023-07-06 17:24:59,242] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 0 [BuiltinVariable(next), BuiltinVariable(iter), GetAttrVariable(GetAttrVariable(InspectSignatureVariable(), parameters), values)]
[2023-07-06 17:24:59,243] torch._dynamo.symbolic_convert: [DEBUG] FAILED INLINING <code object wrapped at 0x7fb3a44bfb30, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py", line 191>
[2023-07-06 17:24:59,243] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:59,243] torch._dynamo.symbolic_convert: [DEBUG] step triggered compile
Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 668, in step
    getattr(self, inst.opname)(inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1100, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/functions.py", line 288, in call_function
    return super().call_function(tx, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/functions.py", line 121, in call_function
    return tx.inline_user_function_return(
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 595, in inline_user_function_return
    result = InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 2134, in inline_call
    return cls.inline_call_(parent, func, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 2231, in inline_call_
    tracer.run()
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 708, in run
    and self.step()
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 668, in step
    getattr(self, inst.opname)(inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 391, in wrapper
    return inner_fn(self, inst)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 1100, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/symbolic_convert.py", line 559, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/misc.py", line 598, in call_function
    return self.obj.call_method(tx, self.name, args, kwargs).add_options(self)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/misc.py", line 616, in call_method
    return super().call_method(tx, name, args, kwargs)
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/variables/base.py", line 329, in call_method
    raise unimplemented(f"call_method {self} {name} {args} {kwargs}")
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/exc.py", line 141, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: call_method GetAttrVariable(InspectSignatureVariable(), parameters) values [] {}
[2023-07-06 17:24:59,244] torch._dynamo.output_graph: [DEBUG] restore_graphstate: removed 0 nodes
[2023-07-06 17:24:59,244] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='step_unsupported', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ndarray.py, line 356 in __eq__>], graph_break=True)
[2023-07-06 17:24:59,245] torch._dynamo.convert_frame.__guards: [DEBUG] GUARDS:
  ___is_grad_enabled()
  not ___are_deterministic_algorithms_enabled()
  utils_device.CURRENT_DEVICE == None
[2023-07-06 17:24:59,245] torch._dynamo.convert_frame: [DEBUG] skipping because no torch.* normalize_array_like_or_scalar             /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_normalizations.py 49
[2023-07-06 17:24:59,246] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo start tracing wrapped /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:72
[2023-07-06 17:24:59,246] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['x1'] (5,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,247] torch._dynamo.variables.builder: [DEBUG] wrap_to_fake L['x2'] (5,) [<DimDynamic.STATIC: 2>] [None]
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:88
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 42 [ConstantVariable(bool)]
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:98
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x1 [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,248] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,249] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,249] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,249] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL isinstance []
[2023-07-06 17:24:59,249] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x2 [BuiltinVariable(isinstance)]
[2023-07-06 17:24:59,249] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL torch [BuiltinVariable(isinstance), TensorVariable()]
[2023-07-06 17:24:59,249] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR Tensor [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<module 'torch' from '/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/__init__.py'>)]
[2023-07-06 17:24:59,250] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [BuiltinVariable(isinstance), TensorVariable(), TorchVariable(<class 'torch.Tensor'>)]
[2023-07-06 17:24:59,250] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 102 [ConstantVariable(bool)]
[2023-07-06 17:24:59,250] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:99
[2023-07-06 17:24:59,250] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,250] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR result_type_impl [PythonModuleVariable()]
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x1 [UserFunctionVariable()]
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x2 [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), TensorVariable()]
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object result_type_impl at 0x7fb3a44af5b0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 42>
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:44
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors []
[2023-07-06 17:24:59,251] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 0 [TupleVariable()]
[2023-07-06 17:24:59,252] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [TupleVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,252] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [TensorVariable()]
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtyp [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:45
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL len []
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors [BuiltinVariable(len)]
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [BuiltinVariable(len), TupleVariable()]
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 1 [ConstantVariable(int)]
[2023-07-06 17:24:59,254] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP == [ConstantVariable(int), ConstantVariable(int)]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 26 [ConstantVariable(bool)]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:48
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors []
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST 1 [TupleVariable()]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [TupleVariable(), ConstantVariable(int)]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE BUILD_SLICE 2 [TupleVariable(), ConstantVariable(int), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [TupleVariable(), SliceVariable()]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE GET_ITER None [TupleVariable()]
[2023-07-06 17:24:59,255] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 60 [ListIteratorVariable()]
[2023-07-06 17:24:59,256] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST curr [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,256] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:49
[2023-07-06 17:24:59,256] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _cd [ListIteratorVariable()]
[2023-07-06 17:24:59,256] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _result_type_dict [ListIteratorVariable(), PythonModuleVariable()]
[2023-07-06 17:24:59,256] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtyp [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,257] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,257] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST curr [ListIteratorVariable(), UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,257] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [ListIteratorVariable(), UserDefinedObjectVariable(dict), TensorVariable()]
[2023-07-06 17:24:59,259] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ListIteratorVariable(), UserDefinedObjectVariable(dict), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtyp [ListIteratorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 38 [ListIteratorVariable()]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 60 [ListIteratorVariable()]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:51
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtyp []
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object result_type_impl at 0x7fb3a44af5b0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 42>
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST dtype [ConstantVariable(dtype)]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:100
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _util []
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR typecast_tensors [PythonModuleVariable()]
[2023-07-06 17:24:59,260] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x1 [UserFunctionVariable()]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x2 [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE BUILD_TUPLE 2 [UserFunctionVariable(), TensorVariable(), TensorVariable()]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [UserFunctionVariable(), TupleVariable()]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF casting [UserFunctionVariable(), TupleVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 3 [UserFunctionVariable(), TupleVariable(), ConstantVariable(dtype), ConstantVariable(str)]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object typecast_tensors at 0x7fb3a44bb9d0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 163>
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:164
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL tuple []
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CLOSURE casting [BuiltinVariable(tuple)]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CLOSURE target_dtype [BuiltinVariable(tuple), NewCellVariable()]
[2023-07-06 17:24:59,261] torch._dynamo.symbolic_convert: [DEBUG] TRACE BUILD_TUPLE 2 [BuiltinVariable(tuple), NewCellVariable(), NewCellVariable()]
[2023-07-06 17:24:59,262] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST <code object <genexpr> at 0x7fb3a44bb920, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 164> [BuiltinVariable(tuple), TupleVariable()]
[2023-07-06 17:24:59,262] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST typecast_tensors.<locals>.<genexpr> [BuiltinVariable(tuple), TupleVariable(), ConstantVariable(code)]
[2023-07-06 17:24:59,262] torch._dynamo.symbolic_convert: [DEBUG] TRACE MAKE_FUNCTION 8 [BuiltinVariable(tuple), TupleVariable(), ConstantVariable(code), ConstantVariable(str)]
[2023-07-06 17:24:59,262] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensors [BuiltinVariable(tuple), NestedUserFunctionVariable()]
[2023-07-06 17:24:59,262] torch._dynamo.symbolic_convert: [DEBUG] TRACE GET_ITER None [BuiltinVariable(tuple), NestedUserFunctionVariable(), TupleVariable()]
[2023-07-06 17:24:59,263] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [BuiltinVariable(tuple), NestedUserFunctionVariable(), ListIteratorVariable()]
[2023-07-06 17:24:59,263] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object <genexpr> at 0x7fb3a44bb920, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 164>
[2023-07-06 17:24:59,263] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST .0 []
[2023-07-06 17:24:59,263] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 22 [ListIteratorVariable()]
[2023-07-06 17:24:59,263] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST t [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,263] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL typecast_tensor [ListIteratorVariable()]
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [ListIteratorVariable(), UserFunctionVariable()]
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF target_dtype [ListIteratorVariable(), UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF casting [ListIteratorVariable(), UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 3 [ListIteratorVariable(), UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype), ConstantVariable(str)]
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object typecast_tensor at 0x7fb3a44bb870, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 131>
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:153
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,264] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR can_cast_impl [PythonModuleVariable()]
[2023-07-06 17:24:59,265] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST can_cast [UserFunctionVariable()]
[2023-07-06 17:24:59,265] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:155
[2023-07-06 17:24:59,265] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST can_cast []
[2023-07-06 17:24:59,265] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [UserFunctionVariable()]
[2023-07-06 17:24:59,265] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,267] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST target_dtype [UserFunctionVariable(), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,267] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST casting [UserFunctionVariable(), TorchVariable(torch.bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,267] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('casting',) [UserFunctionVariable(), TorchVariable(torch.bool), ConstantVariable(dtype), ConstantVariable(str)]
[2023-07-06 17:24:59,267] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 3 [UserFunctionVariable(), TorchVariable(torch.bool), ConstantVariable(dtype), ConstantVariable(str), ConstantVariable(tuple)]
[2023-07-06 17:24:59,267] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object can_cast_impl at 0x7fb3a44af500, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 38>
[2023-07-06 17:24:59,267] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:39
[2023-07-06 17:24:59,268] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _cd []
[2023-07-06 17:24:59,268] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _can_cast_dict [PythonModuleVariable()]
[2023-07-06 17:24:59,270] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST casting [ConstDictVariable()]
[2023-07-06 17:24:59,270] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ConstDictVariable(), ConstantVariable(str)]
[2023-07-06 17:24:59,270] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST from_torch_dtype [UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,270] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [UserDefinedObjectVariable(dict), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST to_torch_dtype [UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [UserDefinedObjectVariable(dict), ConstantVariable(dtype)]
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(bool)]
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object can_cast_impl at 0x7fb3a44af500, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 38>
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_TRUE 52 [ConstantVariable(bool)]
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:160
[2023-07-06 17:24:59,271] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [UserFunctionVariable()]
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST target_dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(dtype), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,272] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [TensorVariable()]
[2023-07-06 17:24:59,274] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP != [TorchVariable(torch.bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object typecast_tensor at 0x7fb3a44bb870, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 131>
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE YIELD_VALUE None [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [ListIteratorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 2 [ListIteratorVariable()]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 22 [ListIteratorVariable()]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST t [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,275] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL typecast_tensor [ListIteratorVariable()]
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [ListIteratorVariable(), UserFunctionVariable()]
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF target_dtype [ListIteratorVariable(), UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF casting [ListIteratorVariable(), UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 3 [ListIteratorVariable(), UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype), ConstantVariable(str)]
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object typecast_tensor at 0x7fb3a44bb870, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 131>
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:153
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _dtypes_impl []
[2023-07-06 17:24:59,276] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR can_cast_impl [PythonModuleVariable()]
[2023-07-06 17:24:59,277] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST can_cast [UserFunctionVariable()]
[2023-07-06 17:24:59,277] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:155
[2023-07-06 17:24:59,277] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST can_cast []
[2023-07-06 17:24:59,277] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [UserFunctionVariable()]
[2023-07-06 17:24:59,277] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST target_dtype [UserFunctionVariable(), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST casting [UserFunctionVariable(), TorchVariable(torch.bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST ('casting',) [UserFunctionVariable(), TorchVariable(torch.bool), ConstantVariable(dtype), ConstantVariable(str)]
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION_KW 3 [UserFunctionVariable(), TorchVariable(torch.bool), ConstantVariable(dtype), ConstantVariable(str), ConstantVariable(tuple)]
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object can_cast_impl at 0x7fb3a44af500, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 38>
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py:39
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _cd []
[2023-07-06 17:24:59,279] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR _can_cast_dict [PythonModuleVariable()]
[2023-07-06 17:24:59,280] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST casting [ConstDictVariable()]
[2023-07-06 17:24:59,280] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [ConstDictVariable(), ConstantVariable(str)]
[2023-07-06 17:24:59,280] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST from_torch_dtype [UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,280] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [UserDefinedObjectVariable(dict), TorchVariable(torch.bool)]
[2023-07-06 17:24:59,280] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST to_torch_dtype [UserDefinedObjectVariable(dict)]
[2023-07-06 17:24:59,280] torch._dynamo.symbolic_convert: [DEBUG] TRACE BINARY_SUBSCR None [UserDefinedObjectVariable(dict), ConstantVariable(dtype)]
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(bool)]
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object can_cast_impl at 0x7fb3a44af500, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_dtypes_impl.py", line 38>
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_TRUE 52 [ConstantVariable(bool)]
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:160
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL cast_if_needed []
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST t [UserFunctionVariable()]
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST target_dtype [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [UserFunctionVariable(), TensorVariable(), ConstantVariable(dtype)]
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:32
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype []
[2023-07-06 17:24:59,281] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(dtype)]
[2023-07-06 17:24:59,282] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(dtype), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,282] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,282] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,282] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_ATTR dtype [TensorVariable()]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST dtype [TorchVariable(torch.bool)]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP != [TorchVariable(torch.bool), ConstantVariable(dtype)]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 28 [ConstantVariable(bool)]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py:34
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST tensor []
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object cast_if_needed at 0x7fb3a44bb0e0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 30>
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object typecast_tensor at 0x7fb3a44bb870, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 131>
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE YIELD_VALUE None [ListIteratorVariable(), TensorVariable()]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_TOP None [ListIteratorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_ABSOLUTE 2 [ListIteratorVariable()]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE FOR_ITER 22 [ListIteratorVariable()]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None []
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,284] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object <genexpr> at 0x7fb3a44bb920, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 164>
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 1 [BuiltinVariable(tuple), ListIteratorVariable()]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TupleVariable()]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object typecast_tensors at 0x7fb3a44bb9d0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_util.py", line 163>
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE UNPACK_SEQUENCE 2 [TupleVariable()]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST x1 [TensorVariable(), TensorVariable()]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST x2 [TensorVariable()]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE JUMP_FORWARD 126 []
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:106
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF torch_func []
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x1 [TorchVariable(<built-in method eq of type object at 0x7fb400075b80>)]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST x2 [TorchVariable(<built-in method eq of type object at 0x7fb400075b80>), TensorVariable()]
[2023-07-06 17:24:59,285] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 2 [TorchVariable(<built-in method eq of type object at 0x7fb400075b80>), TensorVariable(), TensorVariable()]
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE STORE_FAST result [TensorVariable()]
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:108
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_GLOBAL _ufunc_postprocess []
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result [UserFunctionVariable()]
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST out [UserFunctionVariable(), TensorVariable()]
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_DEREF casting [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] TRACE CALL_FUNCTION 3 [UserFunctionVariable(), TensorVariable(), ConstantVariable(NoneType), ConstantVariable(str)]
[2023-07-06 17:24:59,287] torch._dynamo.symbolic_convert: [DEBUG] INLINING <code object _ufunc_postprocess at 0x7fb3a4433df0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py", line 19>
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:20
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST out []
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_CONST None [ConstantVariable(NoneType)]
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE COMPARE_OP is not [ConstantVariable(NoneType), ConstantVariable(NoneType)]
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE POP_JUMP_IF_FALSE 40 [ConstantVariable(bool)]
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE starts_line /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:23
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE LOAD_FAST result []
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] DONE INLINING <code object _ufunc_postprocess at 0x7fb3a4433df0, file "/home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py", line 19>
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] TRACE RETURN_VALUE None [TensorVariable()]
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [INFO] Step 1: torchdynamo done tracing wrapped (RETURN_VALUE)
[2023-07-06 17:24:59,288] torch._dynamo.symbolic_convert: [DEBUG] RETURN_VALUE triggered compile
[2023-07-06 17:24:59,288] torch._dynamo.output_graph: [DEBUG] COMPILING GRAPH due to GraphCompileReason(reason='return_value', user_stack=[<FrameSummary file /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py, line 108 in wrapped>], graph_break=False)
[2023-07-06 17:24:59,290] torch._dynamo.output_graph.__graph_code: [DEBUG] TRACED GRAPH
 ===== __compiled_fn_7 =====
 <eval_with_key>.129 class GraphModule(torch.nn.Module):
    def forward(self, L_x1_ : torch.Tensor, L_x2_ : torch.Tensor):
        l_x1_ = L_x1_
        l_x2_ = L_x2_
        
        # File: /home/br/sweethome/proj/scipy/torch_np_compat/torch_np/_ufuncs.py:106, code: result = torch_func(x1, x2)
        eq = torch.eq(l_x1_, l_x2_);  l_x1_ = l_x2_ = None
        return (eq,)
        

[2023-07-06 17:24:59,290] torch._dynamo.output_graph.__graph: [DEBUG] TRACED GRAPH
 __compiled_fn_7 <eval_with_key>.129 opcode         name    target                                                 args            kwargs
-------------  ------  -----------------------------------------------------  --------------  --------
placeholder    l_x1_   L_x1_                                                  ()              {}
placeholder    l_x2_   L_x2_                                                  ()              {}
call_function  eq      <built-in method eq of type object at 0x7fb400075b80>  (l_x1_, l_x2_)  {}
output         output  output                                                 ((eq,),)        {}

[2023-07-06 17:24:59,290] torch._dynamo.output_graph: [INFO] Step 2: calling compiler function inductor
[2023-07-06 17:24:59,312] torch._dynamo.output_graph: [INFO] Step 2: done compiler function inductor
============================================================================================ warnings summary =============================================================================================
torch_np/tests/numpy_tests/core/test_dlpack.py::TestDLPack::test_dtype_passthrough[int8]
  /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/utils/cpp_extension.py:26: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import packaging  # type: ignore[attr-defined]

torch_np/tests/numpy_tests/core/test_dlpack.py::TestDLPack::test_dtype_passthrough[int8]
  /home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('virtualenvwrapper')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================= short test summary info =========================================================================================
FAILED torch_np/tests/numpy_tests/core/test_dlpack.py::TestDLPack::test_dtype_passthrough[int8] - AssertionError: 
====================================================================================== 1 failed, 2 warnings in 6.06s ======================================================================================
--- Logging error ---
Traceback (most recent call last):
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/logging/__init__.py", line 1088, in emit
    stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
  File "/home/br/mambaforge/envs/torch_nightly/lib/python3.8/site-packages/torch/_dynamo/utils.py", line 238, in dump_compile_times
    log.info(compile_times(repr="str", aggregate=True))
Message: 'TorchDynamo compilation metrics:\nFunction                                Runtimes (s)\n------------------------------------  --------------\n_compile                                      5.7441\nOutputGraph.call_user_compiler                5.5217\ncreate_aot_dispatcher_function                6.165\ncompile_fx.<locals>.fw_compiler_base          5.1523\nGraphLowering.run                             0.0041\nGraphLowering.compile_to_module               3.6381\nScheduler.__init__                            3.6186\nScheduler.codegen                             0.0095\nWrapperCodeGen.generate                       0.0015'
Arguments: ()

@ev-br
Copy link
Collaborator Author

ev-br commented Jul 6, 2023

Also, our tests explicitly import torch_np as np in each test file; these need to flip back to import numpy as np for torch.compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant