onnxruntime/onnxruntime/python
Jambay Kinley f969e7f8d8
Provide kwargs to remove_shared_initializers (#17539)
### Description
Fixes a bug in `get_shared_initializers` where `signature_cache1,
signature_cache2` are passed as positional arguments to
`remove_shared_initializers` but their positions don't match the
function signature. So `signature_cache1` is passed to `min_elements`
and causes comparison error at line 907.

Pass the arguments as kwargs so that it doesn't rely on their positions.


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fixes the bug described above.
2023-09-18 16:41:11 -07:00
..
backend Disable PERF* rules in ruff to allow better readability (#16834) 2023-07-25 15:38:22 -07:00
datasets Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
providers/tvm Bump ruff in CI (#15533) 2023-04-17 10:11:44 -07:00
tools Provide kwargs to remove_shared_initializers (#17539) 2023-09-18 16:41:11 -07:00
torch_cpp_extensions Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
training
__init__.py
_ld_preload.py
_pybind_state.py.in Fix invalid escape sequence (#17145) 2023-08-15 10:29:54 -07:00
exported_symbols.lst
numpy_helper.h
onnxruntime_collect_build_info.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
onnxruntime_inference_collection.py [TensorRT EP] Fallback to CUDA EP if it's explicitly assigned (#17535) 2023-09-15 15:16:11 -07:00
onnxruntime_pybind.h
onnxruntime_pybind_exceptions.cc Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
onnxruntime_pybind_exceptions.h
onnxruntime_pybind_iobinding.cc [DML EP] Add I/O binding and If operator (#16859) 2023-07-31 19:45:59 -07:00
onnxruntime_pybind_mlvalue.cc [DML EP] Complete python IO binding implementation (#17344) 2023-09-13 07:26:35 -07:00
onnxruntime_pybind_mlvalue.h [DML EP] Complete python IO binding implementation (#17344) 2023-09-13 07:26:35 -07:00
onnxruntime_pybind_module.cc Expose build information in dynamic lib (#15643) 2023-04-28 21:57:31 -07:00
onnxruntime_pybind_ortvalue.cc [DML EP] Complete python IO binding implementation (#17344) 2023-09-13 07:26:35 -07:00
onnxruntime_pybind_schema.cc Openvino ep ort 5.1 (#17042) 2023-08-09 11:50:10 -07:00
onnxruntime_pybind_sparse_tensor.cc
onnxruntime_pybind_state.cc [DML EP] Complete python IO binding implementation (#17344) 2023-09-13 07:26:35 -07:00
onnxruntime_pybind_state.h
onnxruntime_pybind_state_common.cc
onnxruntime_pybind_state_common.h Openvino ep ort 5.1 (#17042) 2023-08-09 11:50:10 -07:00
onnxruntime_validation.py Adopt linrtunner as the linting tool - take 2 (#15085) 2023-03-24 15:29:03 -07:00
pybind.def
version_script.lds
version_script_expose_onnx_protobuf.lds