Skip to content

Commit

Permalink
Fix issue #929, less Cast op in concat_op.py (#933)
Browse files Browse the repository at this point in the history
Signed-off-by: xadupre <xadupre@microsoft.com>

Signed-off-by: xadupre <xadupre@microsoft.com>
  • Loading branch information
xadupre authored Nov 11, 2022
1 parent 20d20f0 commit 2da2577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skl2onnx/operator_converters/concat_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def convert_sklearn_concat(scope: Scope, operator: Operator,
exptype = operator.outputs[0].type
new_inputs = []
for inp in operator.inputs:
if inp.type == exptype:
if inp.type.__class__ is exptype.__class__:
new_inputs.append(inp.full_name)
continue
name = scope.get_unique_variable_name("{}_cast".format(inp.full_name))
Expand Down

0 comments on commit 2da2577

Please sign in to comment.