You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use half;
use half::f16;
use half::*;
fn main() {
let arr = vec![half::f16::from_f32(5.4), half::f16::from_f32(-2.1),half::f16::from_f32(-2.1) ];
let mut test = arrayfire::Array::new(&arr, arrayfire::Dim4::new(&[3, 1, 1, 1]));
}
error[E0277]: the trait bound f16: HasAfEnum is not satisfied
--> examples/test.rs:27:17
|
27 | let mut test = arrayfire::Array::new(&arr, arrayfire::Dim4::new(&[3, 1, 1, 1]));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait HasAfEnum is not implemented for f16
|
= help: the following other types implement trait HasAfEnum:
bool
f32
f64
half::binary16::f16
i16
i32
i64
num_complex::Complex
and 5 others
note: required by a bound in Array
--> /home/test/.cargo/registry/src/github.com-1ecc6299db9ec823/arrayfire-3.8.0/src/core/array.rs:163:21
|
163 | pub struct Array<T: HasAfEnum> {
| ^^^^^^^^^ required by this bound in Array
The text was updated successfully, but these errors were encountered:
Description
The latest version of half 2.2.0 is not compatible with arrayfire-rust 3.8.0
Build Environment
Compiler version:
Operating system:
Build environment:
Error Log
error[E0277]: the trait bound
f16: HasAfEnum
is not satisfied--> examples/test.rs:27:17
|
27 | let mut test = arrayfire::Array::new(&arr, arrayfire::Dim4::new(&[3, 1, 1, 1]));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait
HasAfEnum
is not implemented forf16
|
= help: the following other types implement trait
HasAfEnum
:bool
f32
f64
half::binary16::f16
i16
i32
i64
num_complex::Complex
and 5 others
note: required by a bound in
Array
--> /home/test/.cargo/registry/src/github.com-1ecc6299db9ec823/arrayfire-3.8.0/src/core/array.rs:163:21
|
163 | pub struct Array<T: HasAfEnum> {
| ^^^^^^^^^ required by this bound in
Array
The text was updated successfully, but these errors were encountered: