Home
last modified time | relevance | path

Searched refs:flag_list (Results 1 – 25 of 70) sorted by relevance

123

/external/tensorflow/tensorflow/lite/tools/
Dcommand_line_flags.cc166 const std::vector<Flag>& flag_list) { in Parse() argument
170 std::vector<int> sorted_idx(flag_list.size()); in Parse()
172 std::sort(sorted_idx.begin(), sorted_idx.end(), [&flag_list](int a, int b) { in Parse()
173 return flag_list[a].GetFlagType() < flag_list[b].GetFlagType(); in Parse()
178 const Flag& flag = flag_list[sorted_idx[i]]; in Parse()
232 const std::vector<Flag>& flag_list) { in Usage() argument
234 std::vector<int> sorted_idx(flag_list.size()); in Usage()
236 std::sort(sorted_idx.begin(), sorted_idx.end(), [&flag_list](int a, int b) { in Usage()
237 return flag_list[a].GetFlagType() < flag_list[b].GetFlagType(); in Usage()
245 const Flag& flag = flag_list[sorted_idx[i]]; in Usage()
[all …]
/external/tensorflow/tensorflow/compiler/jit/
Dflags.cc37 std::vector<Flag>* flag_list; variable
75 void AppendMarkForCompilationPassFlagsInternal(std::vector<Flag>* flag_list) { in AppendMarkForCompilationPassFlagsInternal() argument
132 flag_list->insert(flag_list->end(), new_flags.begin(), new_flags.end()); in AppendMarkForCompilationPassFlagsInternal()
174 flag_list = new std::vector<Flag>( in AllocateAndParseFlags()
212 AppendMarkForCompilationPassFlagsInternal(flag_list); in AllocateAndParseFlags()
213 xla::ParseFlagsFromEnvAndDieIfUnknown("TF_XLA_FLAGS", *flag_list); in AllocateAndParseFlags()
249 void AppendMarkForCompilationPassFlags(std::vector<Flag>* flag_list) { in AppendMarkForCompilationPassFlags() argument
251 AppendMarkForCompilationPassFlagsInternal(flag_list); in AppendMarkForCompilationPassFlags()
Dcompilation_passes_test_main.cc26 std::vector<tensorflow::Flag> flag_list; in main() local
27 tensorflow::AppendMarkForCompilationPassFlags(&flag_list); in main()
28 auto usage = tensorflow::Flags::Usage(real_argv[0], flag_list); in main()
51 if (!tensorflow::Flags::Parse(&argc, &args.front(), flag_list)) { in main()
/external/tensorflow/tensorflow/compiler/aot/
Dtfcompile_main.cc69 std::vector<tensorflow::Flag> flag_list; in main() local
70 AppendMainFlags(&flag_list, &flags); in main()
71 xla::AppendDebugOptionsFlags(&flag_list); in main()
74 usage += tensorflow::Flags::Usage(argv[0], flag_list); in main()
79 bool parsed_flags_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
Dflags.cc21 void AppendMainFlags(std::vector<Flag>* flag_list, MainFlags* flags) { in AppendMainFlags() argument
78 flag_list->insert(flag_list->end(), tmp.begin(), tmp.end()); in AppendMainFlags()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dxla_internal_test_main.cc24 std::vector<tensorflow::Flag> flag_list; in main() local
25 xla::AppendDebugOptionsFlags(&flag_list); in main()
26 auto usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
27 if (!tensorflow::Flags::Parse(&argc, argv, flag_list)) { in main()
/external/tensorflow/tensorflow/compiler/xla/
Dparse_flags_from_env_test.cc48 std::vector<tensorflow::Flag> flag_list = { in TestParseFlagsFromEnv() local
55 bool parsed_ok = ParseFlagsFromEnvAndDieIfUnknown("TF_XLA_FLAGS", flag_list); in TestParseFlagsFromEnv()
155 const std::vector<tensorflow::Flag> flag_list = { in main() local
160 xla::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
162 xla::ParseFlagsFromEnvAndDieIfUnknown("TF_XLA_FLAGS", flag_list); in main()
166 parse_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/core/api_def/
Dupdate_api_def_main.cc38 std::vector<tensorflow::Flag> flag_list = { in main() local
45 std::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
46 bool parsed_values_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/compiler/xla/tools/
Drun_hlo_module_main.cc73 std::vector<tensorflow::Flag> flag_list = { in main() local
129 xla::AppendDebugOptionsFlags(&flag_list); in main()
133 kUsage, "\n\n", tensorflow::Flags::Usage(argv[0], flag_list)); in main()
134 bool parse_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
Dhex_floats_to_packed_literal.cc37 const std::vector<tensorflow::Flag> flag_list = { in main() local
41 string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
42 bool parse_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
Dhlo_proto_to_json.cc78 const std::vector<tensorflow::Flag> flag_list = { in main() local
82 const string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
83 bool parse_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
Ddumped_computation_to_text.cc93 std::vector<tensorflow::Flag> flag_list = { in main() local
98 const xla::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
99 bool parsed_flags_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/examples/wav_to_spectrogram/
Dmain.cc33 std::vector<tensorflow::Flag> flag_list = { in main() local
44 tensorflow::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
45 const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/tools/mlpbtxt/
Dfrommlpbtxt.cc32 std::vector<Flag> flag_list = { in Run() local
37 const string usage = Flags::Usage(argv[0], flag_list); in Run()
38 const bool parse_ok = Flags::Parse(&argc, argv, flag_list); in Run()
Dtomlpbtxt.cc33 std::vector<Flag> flag_list = { in Run() local
40 const string usage = Flags::Usage(argv[0], flag_list); in Run()
41 const bool parse_ok = Flags::Parse(&argc, argv, flag_list); in Run()
/external/tensorflow/tensorflow/java/src/gen/cc/
Dop_gen_main.cc56 std::vector<tensorflow::Flag> flag_list = { in main() local
66 usage += tensorflow::Flags::Usage(argv[0], flag_list); in main()
67 bool parsed_flags_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/compiler/xla/rpc/
Dgrpc_service_main.cc35 std::vector<tensorflow::Flag> flag_list = { in RealMain() local
43 string usage = tensorflow::Flags::Usage(argv[0], flag_list); in RealMain()
44 bool parsed_values_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in RealMain()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_supported_ops.cc75 std::vector<Flag> flag_list = { in SupportedOpsMain() local
81 string usage = Flags::Usage(argv[0], flag_list); in SupportedOpsMain()
82 bool parsed_flags_ok = Flags::Parse(&argc, argv, flag_list); in SupportedOpsMain()
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Dgenerate_diff_report.cc23 std::vector<tensorflow::Flag> flag_list = { in main() local
28 tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_testlib_server.cc85 std::vector<tensorflow::Flag> flag_list = { in main() local
92 tensorflow::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
93 const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
Dgrpc_tensorflow_server.cc102 std::vector<tensorflow::Flag> flag_list = { in main() local
107 tensorflow::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
108 const bool parse_result = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/core/summary/
Dloader.cc54 std::vector<Flag> flag_list = { in main() local
61 string usage = Flags::Usage(argv[0], flag_list); in main()
62 bool parse_result = Flags::Parse(&argc, argv, flag_list); in main()
/external/bcc/tools/
Dmountsnoop.py269 def _decode_flags(flags, flag_list): argument
271 for flag, bit in flag_list:
280 def decode_flags(flags, flag_list): argument
281 return '|'.join(_decode_flags(flags, flag_list))
/external/tensorflow/tensorflow/lite/tools/accuracy/ilsvrc/
Dimagenet_accuracy_eval_main.cc28 std::vector<tflite::Flag> flag_list = { in main() local
37 tflite::Flags::Parse(&argc, const_cast<const char**>(argv), flag_list); in main()
/external/tensorflow/tensorflow/tools/optimization/
Dgpu_optimization_pass_runner_main.cc36 const std::vector<Flag> flag_list = { in RealMain() local
44 if (!Flags::Parse(&argc, argv, flag_list)) { in RealMain()

123