()
| 2 | use half::f16; |
| 3 | |
| 4 | fn main() { |
| 5 | set_device(0); |
| 6 | info(); |
| 7 | |
| 8 | let values: Vec<_> = (1u8..101).map(std::convert::From::from).collect(); |
| 9 | |
| 10 | let half_values = values.iter().map(|&x| f16::from_f32(x)).collect::<Vec<_>>(); |
| 11 | |
| 12 | let hvals = Array::new(&half_values, Dim4::new(&[10, 10, 1, 1])); |
| 13 | |
| 14 | print(&hvals); |
| 15 | } |
nothing calls this directly
no test coverage detected