#include <cstdint>
#include <cstring>
#include <memory>
#include "tensorflow/lite/array.h"
#include "tensorflow/lite/core/c/builtin_op_data.h"
#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/lite/kernels/internal/tensor.h"
#include "tensorflow/lite/kernels/kernel_util.h"
namespace tflite {
namespace ops {
namespace builtin {
namespace reshape {
constexpr int kInputTensor = …;
constexpr int kShapeTensor = …;
constexpr int kOutputTensor = …;
struct OpData { … };
TfLiteIntArray* GetOutputShape(TfLiteContext*, TfLiteNode*);
TfLiteStatus ResizeOutput(TfLiteContext* context, TfLiteNode* node) { … }
inline TfLiteIntArray* GetOutputShapeFromTensor(TfLiteContext* context,
TfLiteNode* node) { … }
inline TfLiteIntArray* GetOutputShapeFromParam(TfLiteContext* context,
TfLiteNode* node) { … }
inline bool ShapeIsVector(TfLiteContext* context, TfLiteNode* node) { … }
TfLiteIntArray* GetOutputShape(TfLiteContext* context, TfLiteNode* node) { … }
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { … }
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { … }
void* Init(TfLiteContext* context, const char* buffer, size_t length) { … }
void Free(TfLiteContext* context, void* buffer) { … }
}
TfLiteRegistration* Register_RESHAPE() { … }
}
}
}