Skip to content

Commit

Permalink
[luci/pass] Add fp32_to_uint8_cast to header (Samsung#14296)
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 <[email protected]>
  • Loading branch information
01000-you authored Nov 28, 2024
1 parent 8c6cde6 commit 0002635
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 0002635

Please sign in to comment.