Skip to content

Commit

Permalink
fix pow with scalar input (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkoski authored Dec 3, 2024
1 parent c30d558 commit 30eecff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MLX/Ops+Array.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ public func pow<T: ScalarOrArray>(_ array: MLXArray, _ other: T, stream: StreamO
public func pow<T: ScalarOrArray>(_ array: T, _ other: MLXArray, stream: StreamOrDevice = .default)
-> MLXArray
{
let array = other.asMLXArray(dtype: other.dtype)
let array = array.asMLXArray(dtype: other.dtype)
return pow(array, other, stream: stream)
}

Expand Down

0 comments on commit 30eecff

Please sign in to comment.