1 /* 2 * Copyright 2020 The TensorFlow Authors. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_HELLO_WORLD_CONSTANTS_H_ 18 #define TENSORFLOW_LITE_MICRO_EXAMPLES_HELLO_WORLD_CONSTANTS_H_ 19 20 /* This constant represents the range of x values our model was trained on, 21 * which is from 0 to (2 * Pi). We approximate Pi to avoid requiring additional 22 * libraries. 23 */ 24 const float kXrange = 2.f * 3.14159265359f; 25 26 /* This constant determines the number of inferences to perform across the range 27 * of x values defined above. Since each inference takes time, the higher this 28 * number, the more time it will take to run through the entire range. The value 29 * of this constant can be tuned so that one full cycle takes a desired amount 30 * of time. Since different devices take different amounts of time to perform 31 * inference, this value should be defined per-device. 32 */ 33 extern const int kInferencesPerCycle; 34 35 #endif /* TENSORFLOW_LITE_MICRO_EXAMPLES_HELLO_WORLD_CONSTANTS_H_ */ 36