#include <cmath>
#include <random>
#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h"
#include "tensorflow/lite/kernels/kernel_util.h"
namespace tflite {
namespace ops {
namespace custom {
namespace random_standard_normal {
struct OpData { … };
namespace {
constexpr int kShapeTensor = …;
constexpr int kOutputTensor = …;
template <typename T>
TfLiteStatus RandomStandardNormalSample(std::default_random_engine& rng,
T* output, size_t output_size) { … }
}
void* Init(TfLiteContext* context, const char* buffer, size_t length) { … }
void Free(TfLiteContext* context, void* buffer) { … }
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { … }
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { … }
}
TfLiteRegistration* Register_RANDOM_STANDARD_NORMAL() { … }
}
}
}