Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: xadupre <[email protected]>
  • Loading branch information
xadupre committed Dec 21, 2024
1 parent 47dae5e commit 94dfd7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def calculate_one_hot_encoder_output_shapes(operator):
operator.outputs[0].type = FloatTensorType(
[N, len(int_categories)], doc_string=operator.outputs[0].type.doc_string
)
elif len(str_categories) > 0 and type(operator.inputs[0].type) == StringTensorType:
elif len(str_categories) > 0 and type(operator.inputs[0].type) is StringTensorType:
operator.outputs[0].type = FloatTensorType(
[N, len(str_categories)], doc_string=operator.outputs[0].type.doc_string
)
Expand Down

0 comments on commit 94dfd7a

Please sign in to comment.