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

feat: support all float types in MatrixView #1282

Merged
merged 5 commits into from
Sep 15, 2023
Merged

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Sep 14, 2023

The matrix view supports bf16/f16/f32/f64.

@github-actions
Copy link

ACTION NEEDED

Lance follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

For details on the error please inspect the "PR Title Check" action.

@eddyxu eddyxu changed the title [WIP] Support all float types in Matrix view Feat: Support all float types in Matrix view Sep 14, 2023
@eddyxu eddyxu changed the title Feat: Support all float types in Matrix view feat: support all float types in MatrixView Sep 14, 2023
@eddyxu eddyxu force-pushed the lei/matrix_view_row_iter branch from e8e4e29 to 1014133 Compare September 14, 2023 19:09
@eddyxu eddyxu marked this pull request as ready for review September 14, 2023 19:10
Copy link
Contributor

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

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

This looks good. Would be nice to add the TODO in there.

type Native = bf16;

fn as_slice(&self) -> &[Self::Native] {
todo!()
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm it looks like we are blocked here because FSB returns an owned buffer from values().

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a TODO to fix this once we have apache/arrow-rs#4820 done and released upstream.

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.

@eddyxu eddyxu merged commit 4d6fd3c into main Sep 15, 2023
@eddyxu eddyxu deleted the lei/matrix_view_row_iter branch September 15, 2023 14:26
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