mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 18:28:24 +00:00
add where_cond f32 for metal (#2236)
This commit is contained in:
@ -5,7 +5,7 @@ use criterion::{black_box, criterion_group, Criterion};
|
||||
use std::time::Instant;
|
||||
|
||||
fn run(input: &Tensor, weight: &Tensor, bias: &Tensor) {
|
||||
let _ = LayerNorm::new(weight.clone(), bias.clone(), 1e-5).forward(&input);
|
||||
let _ = LayerNorm::new(weight.clone(), bias.clone(), 1e-5).forward(input);
|
||||
}
|
||||
|
||||
const B: usize = 1;
|
||||
|
Reference in New Issue
Block a user