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

Fix make_const for strings #1335

Merged
merged 2 commits into from Feb 12, 2021
Merged

Conversation

TomWildenhain-Microsoft
Copy link
Contributor

Signed-off-by: Tom Wildenhain tomwi@microsoft.com

if raw and np_val.dtype != np.object:
np_val_flat = np_val.flatten()
is_bytes = np_val.dtype == np.object and len(np_val_flat) > 0 and isinstance(np_val_flat[0], bytes)
if raw and not is_bytes:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Workaround onnx issue onnx/onnx#3270

@TomWildenhain-Microsoft TomWildenhain-Microsoft merged commit 5192a1b into master Feb 12, 2021
@TomWildenhain-Microsoft TomWildenhain-Microsoft deleted the tom/FixStringConsts branch February 12, 2021 17:13
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.

None yet

2 participants