ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Elementwise.h File Reference
#include "Shape.h"

Go to the source code of this file.

Functions

bool genericActivationPrepare (const Shape &input, Shape *output)
 

Function Documentation

◆ genericActivationPrepare()

bool genericActivationPrepare ( const Shape input,
Shape output 
)

Definition at line 21 of file Elementwise.cpp.

22{
23 ASSERT(getNumberOfDimensions(input) <= 4);
24 return SetShape(input, output);
25}
#define ASSERT(v)
Definition Assert.h:24
bool SetShape(const Shape &in, Shape *out)
Definition Shape.cpp:38
uint32_t getNumberOfDimensions(const Shape &shape)
Definition Shape.cpp:58

References ASSERT, getNumberOfDimensions(), and SetShape().

Referenced by relu6Prepare(), reluPrepare(), and softmaxPrepare().