ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::cker::optimized::BinaryOpActivationFloatMinMax Struct Reference

#include <BinaryArithmeticOps.h>

Static Public Member Functions

static float applyCeiling (const float value, const float ceilingParam)
 
static float applyFloor (const float value, const float floorParam)
 

Detailed Description

Definition at line 539 of file BinaryArithmeticOps.h.

Member Function Documentation

◆ applyCeiling()

static float nnfw::cker::optimized::BinaryOpActivationFloatMinMax::applyCeiling ( const float  value,
const float  ceilingParam 
)
inlinestatic

Definition at line 551 of file BinaryArithmeticOps.h.

552 {
553 return std::min(value, ceilingParam);
554 }

◆ applyFloor()

static float nnfw::cker::optimized::BinaryOpActivationFloatMinMax::applyFloor ( const float  value,
const float  floorParam 
)
inlinestatic

Definition at line 555 of file BinaryArithmeticOps.h.

556 {
557 return std::max(value, floorParam);
558 }

The documentation for this struct was generated from the following file: