MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / half

Class half

tensorflow/lite/delegates/gpu/common/types.h:33–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using HalfBits = uint16_t;
32
33class alignas(2) half {
34 public:
35 HalfBits bits;
36
37 half() = default;
38
39 half(const half& f) : bits(f.bits) {}
40
41 explicit half(float other) { bits = fp16_ieee_from_fp32_value(other); }
42
43 void operator=(float f) { *this = half(f); }
44
45 operator float() const { return fp16_ieee_to_fp32_value(bits); }
46};
47
48template <typename T>
49struct alignas(sizeof(T)) Vec4 {

Callers 7

operator=Method · 0.70
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
FLTMethod · 0.50

Calls

no outgoing calls

Tested by 5

TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40