Registry / other / candle-core

candle-core

JSON →
library0.10.2rscratesunverified

Minimalist ML framework.

# Cargo.toml [dependencies] candle-core = "0.10.2"
INSTALL
IMPORT
SIG · CANDLE-CORE
C
candle-core
otherrustv0.10.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tensor
use candle_core::Tensor;

Creates a simple tensor on CPU.

use candle_core::Tensor; fn main() -> Result<(), Box<dyn std::error::Error>> { let tensor = Tensor::new(&[1.0f32, 2.0, 3.0], &candle_core::Device::Cpu)?; println!("Tensor: {:?}", tensor); Ok(()) }
Debug
Known issues
gotchaRequires the 'accelerate' feature for macOS GPU support.
fix
Add `features = ["accelerate"]` to your Cargo.toml dependency.
affects: >=0.10.0
Upgrade
Version history
0.10.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Meta
1
Amazon
1
Resources
candle-core — cargo add candle-core · libregistry