mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00

* onnx: workaround pow with negative base rather than fully defining pow in the cpu backend (as in #2318), this implements a much smaller change which is sufficient to evaluate silero-vad onnx models. Specifically, checking if pow is run with 2.0 exponent, and if so evaluate as simply `x*x` instead of the cpu backend of `e^(2.0 * ln(x))`. * PR: use Tensor::powf insead powf correctly handles a negative base.
candle-onnx
This crate adds ONNX support to candle
FAQ
Missing protoc installation when compiling candle-onnx
The candle-onnx dependency prost-build no longer comes bundled with prost binaries. This could cause the following error when attempting to compile candle-onnx:
error: failed to run custom build command for `candle-onnx`
Caused by: // (...)
Could not find `protoc` installation and this build crate cannot proceed without this knowledge.
To fix this issue install protoc on your system and make it available in your
system PATH
. See the protoc
documentation for more information.