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

Fixing empty serialization (no tensor) with some metadata. #472

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

Narsil
Copy link
Collaborator

@Narsil Narsil commented Apr 23, 2024

What does this PR do?

Fixes # (issue) or description of the problem this PR solves.

@Narsil Narsil requested a review from McPatate April 24, 2024 08:22
@Narsil Narsil merged commit 079781f into main Apr 24, 2024
3 checks passed
@Narsil Narsil deleted the fix_empty_with_metadata branch April 24, 2024 08:24
Comment on lines +845 to +849
let out = serialize(&tensors, &None).unwrap();
assert_eq!(
out,
[8, 0, 0, 0, 0, 0, 0, 0, 123, 125, 32, 32, 32, 32, 32, 32]
);
Copy link
Member

Choose a reason for hiding this comment

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

Why does calling serialize on an empty HashMap result in a non zero length array?

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