mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
Rename the candle crate to candle-core (#301)
* Rename to candle-core. * More candle-core renaming.
This commit is contained in:
@ -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)?;
|
||||
|
@ -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)?;
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user