argmaxinc / WhisperKit

On-device Speech Recognition for Apple Silicon
http://argmaxinc.com/blog/whisperkit
MIT License
3.92k stars 331 forks source link

Fixed Conformance of 'Float16' warning #58

Closed jkrukowski closed 8 months ago

jkrukowski commented 8 months ago

Fixes Conformance of 'Float16' to 'BNNSScalar' is unavailable in macOS; this is an error in Swift 6 warning

Idea taken from the docs

Float16 is available on Apple silicon, and unavailable on Intel when targeting macOS.

and from swift-numerics