Skip to content

Expose BFloat in Python bindings#8255

Merged
steven-johnson merged 1 commit intohalide:mainfrom
jansel:python_bfloat
Jun 2, 2024
Merged

Expose BFloat in Python bindings#8255
steven-johnson merged 1 commit intohalide:mainfrom
jansel:python_bfloat

Conversation

@jansel
Copy link
Contributor

@jansel jansel commented Jun 2, 2024

There are two parts to support for BFloat16 in Python:

  1. Ability to define kernels and AOT compile them [fixed in this PR]
  2. Ability to call kernels from Python

This fixes part 1, which is what I need for my use case. Part 2 is blocked on bfloat16 support in Python buffer protocols. See #6849 for more details.

There are two parts to support for BFloat16 in Python:
1) Ability to define kernels and AOT compile them [fixed in this PR]
2) Ability to call kernels from Python

This fixes part 1, which is what I need for my use case.  Part 2 is
blocked on bfloat16 support in Python buffer protocols. See halide#6849 for
more details.
@abadams abadams requested a review from halidebuildbots June 2, 2024 01:41
Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@steven-johnson steven-johnson merged commit 7ca95d8 into halide:main Jun 2, 2024
jansel added a commit to pytorch/pytorch that referenced this pull request Jun 19, 2024
Requires halide/Halide#8255

ghstack-source-id: 237dae8
Pull Request resolved: #129036
jansel added a commit to pytorch/pytorch that referenced this pull request Jun 22, 2024
Requires halide/Halide#8255

ghstack-source-id: 5c70a85
Pull Request resolved: #129036
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jun 29, 2024
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.

3 participants