microsoft / onnxscript

ONNX Script enables developers to naturally author ONNX functions and models using a subset of Python.
https://onnxscript.ai/
MIT License
280 stars 53 forks source link

Number of actual parameters exceeds number of formal parameters #282

Open justinchuby opened 1 year ago

justinchuby commented 1 year ago

It wasn't very clear what this error is and how to fix it.

onnxscript/autocast.py:39: in cast_inputs
    raise ValueError(
E   ValueError: Number of actual parameters 2 exceeds number of formal parameters 1.
justinchuby commented 1 year ago

Maybe: are you supplying inputs as attributes to... ?

Or xxx only takes 2 parameters: ('a', 'b'), but 3 parameters were provided.