We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc77341 commit 965f9c9Copy full SHA for 965f9c9
src/lib.rs
@@ -2427,7 +2427,7 @@ mod tests {
2427
fn test_f16() {
2428
let data: Vec<f16> = vec![-1.0f32, 0.0, 1.0, 2.5]
2429
.into_iter()
2430
- .map(|x| f16::from_f32(x))
+ .map(f16::from_f32)
2431
.collect();
2432
let tensor = <Tensor<f16>>::new(&[2, 2]).with_values(&data).unwrap();
2433
assert_eq!(&tensor[..], &data[..]);
0 commit comments