Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
error_reporter.h
00001 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 00002 00003 Licensed under the Apache License, Version 2.0 (the "License"); 00004 you may not use this file except in compliance with the License. 00005 You may obtain a copy of the License at 00006 00007 http://www.apache.org/licenses/LICENSE-2.0 00008 00009 Unless required by applicable law or agreed to in writing, software 00010 distributed under the License is distributed on an "AS IS" BASIS, 00011 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 See the License for the specific language governing permissions and 00013 limitations under the License. 00014 ==============================================================================*/ 00015 #ifndef TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_ 00016 #define TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_ 00017 00018 #include <cstdarg> 00019 00020 namespace tflite { 00021 00022 /// A functor that reports error to supporting system. Invoked similar to 00023 /// printf. 00024 /// 00025 /// Usage: 00026 /// ErrorReporter foo; 00027 /// foo.Report("test %d", 5); 00028 /// or 00029 /// va_list args; 00030 /// foo.Report("test %d", args); // where args is va_list 00031 /// 00032 /// Subclass ErrorReporter to provide another reporting destination. 00033 /// For example, if you have a GUI program, you might redirect to a buffer 00034 /// that drives a GUI error log box. 00035 class ErrorReporter { 00036 public: 00037 virtual ~ErrorReporter() {} 00038 virtual int Report(const char* format, va_list args) = 0; 00039 int Report(const char* format, ...); 00040 int ReportError(void*, const char* format, ...); 00041 }; 00042 00043 } // namespace tflite 00044 00045 #endif // TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_
Generated on Wed Jul 13 2022 16:03:35 by
