Skip to content

Commit

Permalink
Add fp32_to_uint8_cast to header
Browse files Browse the repository at this point in the history
This commit add the fp32_to_uint8_cast in the header file.

ONE-DCO-1.0-Signed-off-by: y01000.you <y01000.you@samsung.com>
  • Loading branch information
y01000.you committed Nov 20, 2024
1 parent 85bcba8 commit 2e6da7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/luci/pass/src/QuantizationUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ void propagate_pad_v2_quantparam(luci::CirclePadV2 *pad_v2);
// Return true if the node is quantized
bool is_quantized(const CircleNode *node);

// Cast a floating-point number to an unsigned 8-bit integer
uint8_t fp32_to_uint8_cast(float f);

// Return true if the node is fp32
bool is_fp32(const CircleNode *node);

Expand Down

0 comments on commit 2e6da7c

Please sign in to comment.