Description
Before submitting your request, please review past submissions to ensure that it is not a duplicate of a known feature request.
Describe the feature request
Add mypy type hints to code (for example
tensorflow-onnx/tf2onnx/convert.py
Line 412 in baf5ad0
def from_keras(model, input_signature=None, opset=None, custom_ops=None, custom_op_handlers=None,
custom_rewriter=None, inputs_as_nchw=None, outputs_as_nchw=None, extra_opset=None, shape_override=None,
target=None, large_model=False, output_path=None, optimizers=None):
Type hints would reduce possible sources of error here.
For example, the following is possible in the CLI:
python -m tf2onnx.convert --opset 10 --outputs-as-nchw output --inputs-as-nchw input --saved-model .\saved_models\
,
but not in the code, as a list is expected.