1 | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved. |
2 | |
3 | Licensed under the Apache License, Version 2.0 (the "License"); |
4 | you may not use this file except in compliance with the License. |
5 | You may obtain a copy of the License at |
6 | |
7 | http://www.apache.org/licenses/LICENSE-2.0 |
8 | |
9 | Unless required by applicable law or agreed to in writing, software |
10 | distributed under the License is distributed on an "AS IS" BASIS, |
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | See the License for the specific language governing permissions and |
13 | limitations under the License. |
14 | ==============================================================================*/ |
15 | |
16 | #ifndef TENSORFLOW_CORE_UTIL_STAT_SUMMARIZER_OPTIONS_H_ |
17 | #define TENSORFLOW_CORE_UTIL_STAT_SUMMARIZER_OPTIONS_H_ |
18 | namespace tensorflow { |
19 | // Used to control the output of the statistics summarizer; |
20 | struct StatSummarizerOptions { |
21 | StatSummarizerOptions() |
22 | : show_run_order(true), |
23 | run_order_limit(0), |
24 | show_time(true), |
25 | time_limit(10), |
26 | show_memory(true), |
27 | memory_limit(10), |
28 | show_type(true), |
29 | show_summary(true), |
30 | format_as_csv(false) {} |
31 | |
32 | bool show_run_order; |
33 | int run_order_limit; |
34 | bool show_time; |
35 | int time_limit; |
36 | bool show_memory; |
37 | int memory_limit; |
38 | bool show_type; |
39 | bool show_summary; |
40 | bool format_as_csv; |
41 | }; |
42 | } // namespace tensorflow |
43 | |
44 | #endif // TENSORFLOW_CORE_UTIL_STAT_SUMMARIZER_OPTIONS_H_ |
45 | |