Rename the candle crate to candle-core (#301)

* Rename to candle-core.

* More candle-core renaming.
This commit is contained in:
Laurent Mazare
2023-08-02 08:20:22 +01:00
committed by GitHub
parent 6e33ff62d6
commit 51e51da896
23 changed files with 77 additions and 76 deletions

View File

@ -2,7 +2,7 @@
extern crate intel_mkl_src;
use anyhow::Result;
use candle::{Device, Tensor};
use candle_core::{Device, Tensor};
fn main() -> Result<()> {
let a = Tensor::randn(0f32, 1., (2, 3), &Device::Cpu)?;

View File

@ -2,7 +2,7 @@
extern crate intel_mkl_src;
use anyhow::Result;
use candle::{Device, Tensor};
use candle_core::{Device, Tensor};
fn main() -> Result<()> {
let device = Device::new_cuda(0)?;

View File

@ -4,7 +4,7 @@ extern crate intel_mkl_src;
use std::str::FromStr;
use anyhow::Result;
use candle::{Device, Tensor};
use candle_core::{Device, Tensor};
fn cos_sin(n: usize, device: &Device) -> Result<Tensor> {
let thetas: Vec<_> = (0..n).map(|i| (i as f32 / n as f32)).collect();