Skip to content

Commit

Permalink
Fix _parse.py
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Bartet <[email protected]>
  • Loading branch information
Pierre Bartet authored and Pierre-Bartet committed Jan 23, 2025
1 parent 77310d5 commit f5be77c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skl2onnx/_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ def _parse_sklearn_column_transformer(scope, model, inputs, custom_parsers=None)
elif isinstance(column_indices, (int, str)):
column_indices = [column_indices]
names = get_column_indices(column_indices, inputs, multiple=True)

# Skip transforms which apply to no columns at all
if len(names) == 0:
continue

transform_inputs = []
for onnx_var, onnx_is in names.items():
tr_inputs = _fetch_input_slice(scope, [inputs[onnx_var]], onnx_is)
Expand Down

0 comments on commit f5be77c

Please sign in to comment.