Skip to content

need impl num_traits::ApproxEq for half data type #85

@Xudong-Huang

Description

@Xudong-Huang

so that we can compare by using the num_traits::assert_approx_eq macro

assert_approx_eq!(half::f16, self.test_atomic_add_result(input), out);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `ApproxEq` is not implemented for `f16`

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions