Add support for accelerate in the pyo3 bindings. (#1167)

This commit is contained in:
Laurent Mazare
2023-10-24 06:34:37 +01:00
committed by GitHub
parent 807e3f9f52
commit 7bd0faba75
3 changed files with 11 additions and 1 deletions

View File

@ -11,6 +11,9 @@ use half::{bf16, f16};
#[cfg(feature = "mkl")]
extern crate intel_mkl_src;
#[cfg(feature = "accelerate")]
extern crate accelerate_src;
use ::candle::{quantized::QTensor, DType, Device, Tensor, WithDType};
pub fn wrap_err(err: ::candle::Error) -> PyErr {