Skip to content

Add optional half crate support for ScalarOperand#1588

Closed
emiddleton wants to merge 1 commit intorust-ndarray:masterfrom
emiddleton:feat/f16_bf16_support_for_scalar_operand
Closed

Add optional half crate support for ScalarOperand#1588
emiddleton wants to merge 1 commit intorust-ndarray:masterfrom
emiddleton:feat/f16_bf16_support_for_scalar_operand

Conversation

@emiddleton
Copy link

Add half feature flag with optional dependency on the half crate. When enabled, implements ScalarOperand for half::f16 and half::bf16, allowing these types to participate in array arithmetic operations.

This enables the burn-ndarray backend to support bf16/f16 tensor operations.

Add `half` feature flag with optional dependency on the `half` crate.
When enabled, implements `ScalarOperand` for `half::f16` and `half::bf16`,
allowing these types to participate in array arithmetic operations.

This enables the burn-ndarray backend to support bf16/f16 tensor operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nilgoyette
Copy link
Collaborator

Thanks for your contribution, Edward. However, this PR does the same, and more, so we're gonna continue with that one.

@nilgoyette nilgoyette closed this Mar 9, 2026
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