mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Clippy after rebase.
This commit is contained in:
@ -6,6 +6,7 @@ extern crate intel_mkl_src;
|
|||||||
|
|
||||||
use anyhow::{Error as E, Result};
|
use anyhow::{Error as E, Result};
|
||||||
use candle::{DType, Device, Tensor, D};
|
use candle::{DType, Device, Tensor, D};
|
||||||
|
use candle_hub::{api::sync::Api, Repo, RepoType};
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use rand::{distributions::Distribution, SeedableRng};
|
use rand::{distributions::Distribution, SeedableRng};
|
||||||
use tokenizers::Tokenizer;
|
use tokenizers::Tokenizer;
|
||||||
@ -116,9 +117,6 @@ struct Args {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
use candle_hub::{api::sync::Api, Repo, RepoType};
|
|
||||||
use tokenizers::Tokenizer;
|
|
||||||
|
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
let device = if args.cpu {
|
let device = if args.cpu {
|
||||||
Device::Cpu
|
Device::Cpu
|
||||||
|
Reference in New Issue
Block a user