mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Fix bfloat16 Hadamard (#1283)
* fix bfloat16 hadamard * add scale * review comments --------- Co-authored-by: Alex Barron <abarron22@apple.com>
This commit is contained in:
@@ -134,7 +134,7 @@ array flatten(const array& a, StreamOrDevice s = {});
|
||||
/** Multiply the array by the Hadamard matrix of corresponding size. */
|
||||
array hadamard_transform(
|
||||
const array& a,
|
||||
float scale = 1.0f,
|
||||
std::optional<float> scale = std::nullopt,
|
||||
StreamOrDevice s = {});
|
||||
|
||||
/** Remove singleton dimensions at the given axes. */
|
||||
|
||||
Reference in New Issue
Block a user