MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / read_as_bf16

Function read_as_bf16

tests/validation/CPP/LUT.cpp:41–46  ·  view source on GitHub ↗

Take fp16 value and output as uint16_t without changing bits.

Source from the content-addressed store, hash-verified

39#ifdef ARM_COMPUTE_ENABLE_FP16
40// Take fp16 value and output as uint16_t without changing bits.
41inline uint16_t read_as_bf16(const float16_t tmp)
42{
43 uint16_t out = 0;
44 memcpy(&out, &tmp, sizeof(tmp));
45 return out;
46}
47#endif // ARM_COMPUTE_ENABLE_FP16
48
49// Check if difference in values is within tolerance range

Callers 1

TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected