tvm
Functions
builtin_fp16.h File Reference

Functions for conversion between fp32 and fp16. More...

#include <tvm/runtime/c_runtime_api.h>
#include <cstdint>
Include dependency graph for builtin_fp16.h:

Go to the source code of this file.

Functions

uint16_t __gnu_f2h_ieee (float)
 
float __gnu_h2f_ieee (uint16_t)
 
uint16_t __truncsfhf2 (float v)
 
uint16_t __truncdfhf2 (double v)
 
float __extendhfsf2 (uint16_t v)
 

Detailed Description

Functions for conversion between fp32 and fp16.

Function Documentation

◆ __extendhfsf2()

float __extendhfsf2 ( uint16_t  v)

◆ __gnu_f2h_ieee()

uint16_t __gnu_f2h_ieee ( float  )

◆ __gnu_h2f_ieee()

float __gnu_h2f_ieee ( uint16_t  )

◆ __truncdfhf2()

uint16_t __truncdfhf2 ( double  v)

◆ __truncsfhf2()

uint16_t __truncsfhf2 ( float  v)