Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for int64 -> string CategoryMapper updated #2181

Merged
merged 7 commits into from
May 30, 2023

Conversation

pagran
Copy link
Contributor

@pagran pagran commented May 28, 2023

Updated version of #1660

  • Add tests
  • Add const handling

pagran and others added 6 commits May 28, 2023 14:28
Signed-off-by: pagran <pagran@pm.me>
Signed-off-by: pagran <pagran@pm.me>
Signed-off-by: pagran <pagran@pm.me>
Signed-off-by: pagran <pagran@pm.me>

if in_dtype == TensorProto.STRING:
cats_strings, cats_int64s = initialized_tables[shared_name]
attr = {'cats_int64s': cats_int64s, 'cats_strings': cats_strings, 'default_int64': default_val}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be moved out of this if-block.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: pagran <pagran@pm.me>
Copy link
Collaborator

@fatcat-z fatcat-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contributions!

@fatcat-z fatcat-z merged commit dd373a1 into onnx:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants