ONE - On-device Neural Engine
|
#include "Pad.h"
#include "Assert.h"
#include "Logging.h"
#include "internal/Dims.h"
#include <vector>
#include <cstring>
Go to the source code of this file.
Functions | |
bool | padPrepare (const Shape &input, const int32_t *paddingsData, const Shape &paddingsShape, Shape *output) |
bool | padGeneric (const uint8_t *inputData, const Shape &inputShape, const int32_t *paddings, uint8_t *outputData, const Shape &outputShape) |
bool padGeneric | ( | const uint8_t * | inputData, |
const Shape & | inputShape, | ||
const int32_t * | paddings, | ||
uint8_t * | outputData, | ||
const Shape & | outputShape | ||
) |
Definition at line 153 of file Pad.cpp.
References convertShapeToDims(), getNumberOfDimensions(), LOG, and Shape::type.
bool padPrepare | ( | const Shape & | input, |
const int32_t * | paddingsData, | ||
const Shape & | paddingsShape, | ||
Shape * | output | ||
) |
Definition at line 28 of file Pad.cpp.
References ASSERT, getNumberOfDimensions(), getSizeOfDimension(), and Shape::type.