<built-in function ge>: Critical Error in dispatcher:
Traceback (most recent call last):
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 497, in _add_nodes
_handle_call_function_node_with_lowering(
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 379, in _handle_call_function_node_with_lowering
raise errors.DispatchError(
torch_onnx.errors.DispatchError: No ONNX function found for <OpOverload(op='aten.sym_size', overload='int')>. Failure message: No decompositions registered for the real-valued input
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_patch.py", line 192, in _torch_onnx_export
ir_model = torch_onnx.exported_program_to_ir(program)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 633, in exported_program_to_ir
values = _add_nodes(exported_program, model, lower=lower, registry=registry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_core.py", line 508, in _add_nodes
raise errors.OnnxConversionError(
torch_onnx.errors.OnnxConversionError: Error when translating node %sym_size : [num_users=2] = call_function[target=torch.ops.aten.sym_size.int](args = (%nonzero, 0), kwargs = {}). See the stack trace for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_analysis.py", line 209, in analyze
onnx_function, message = _dispatching.dispatch(node, registry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_dispatching.py", line 323, in dispatch
overload, message = get_matching_overload(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_dispatching.py", line 208, in get_matching_overload
named_args = _get_named_fx_node_args(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/justinc/Documents/GitHub/torch-onnx/src/torch_onnx/_dispatching.py", line 186, in _get_named_fx_node_args
torch_schema: torch.FunctionSchema = node.target._schema
^^^^^^^^^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute '_schema'
. Example node: %ge : [num_users=1] = call_function[target=operator.ge](args = (%sym_size, 0), kwargs = {}). All nodes: [ge]
<built-in function ge>
: Critical Error in dispatcher:. Example node:
%ge : [num_users=1] = call_function[target=operator.ge](args = (%sym_size, 0), kwargs = {})
. All nodes:[ge]