1/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#ifndef TENSORFLOW_COMPILER_XLA_LEGACY_FLAGS_DEBUG_OPTIONS_FLAGS_H_
17#define TENSORFLOW_COMPILER_XLA_LEGACY_FLAGS_DEBUG_OPTIONS_FLAGS_H_
18
19#include <vector>
20
21#include "tensorflow/compiler/xla/xla.pb.h"
22#include "tensorflow/core/util/command_line_flags.h"
23
24namespace xla {
25namespace legacy_flags {
26
27// Appends flag definitions for debug options to flag_list.
28void AppendDebugOptionsFlags(std::vector<tensorflow::Flag>* flag_list);
29
30// Fetches a DebugOptions proto message from flags provided to the program.
31// Flags must be registered with the flags parser using AppendDebugOptionsFlags
32// first.
33xla::DebugOptions GetDebugOptionsFromFlags();
34
35} // namespace legacy_flags
36} // namespace xla
37
38#endif // TENSORFLOW_COMPILER_XLA_LEGACY_FLAGS_DEBUG_OPTIONS_FLAGS_H_
39