Support the Accelerate BLAS on macOS. (#325)

* Add the accelerate feature.

* Ffi tweaks.
This commit is contained in:
Laurent Mazare
2023-08-05 17:25:24 +01:00
committed by GitHub
parent 0b175fcbbd
commit b278834267
12 changed files with 241 additions and 9 deletions

View File

@ -33,6 +33,8 @@
//!
//! Rust is cool, and a lot of the HF ecosystem already has Rust crates [safetensors](https://github.com/huggingface/safetensors) and [tokenizers](https://github.com/huggingface/tokenizers)
#[cfg(feature = "accelerate")]
mod accelerate;
pub mod backend;
pub mod backprop;
mod conv;