/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/lite/tools/utils.h" #include <algorithm> #include <complex> #include <random> #include "tensorflow/lite/c/c_api_types.h" #include "tensorflow/lite/c/common.h" #include "tensorflow/lite/kernels/kernel_util.h" #include "tensorflow/lite/tools/logging.h" namespace tflite { namespace utils { namespace { std::mt19937* get_random_engine() { … } template <typename T, typename Distribution> inline InputTensorData CreateInputTensorData(int num_elements, Distribution distribution) { … } } // namespace InputTensorData CreateRandomTensorData(const TfLiteTensor& tensor, float low_range, float high_range) { … } void GetDataRangesForType(TfLiteType type, float* low_range, float* high_range) { … } } // namespace utils } // namespace tflite