Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

error in function tohalf(float f) #90

@xingjinglu

Description

@xingjinglu

In file matrix_math.cuh, the function toHalf(float f) does not convert the float value to half explicitly.

static __device__ __forceinline__ half toHalf(float f) {
    return f;  // It should be __float2half(f)
}

static __device__ __forceinline__ half toHalf(half f) {
    return __float2half(f);  // retrun f;
}           

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions