Home
last modified time | relevance | path

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

123

/external/tensorflow/tensorflow/lite/tools/
Dcommand_line_flags.cc167 const std::vector<Flag>& flag_list) { in Parse() argument
176 std::vector<int> sorted_idx(flag_list.size()); in Parse()
178 std::sort(sorted_idx.begin(), sorted_idx.end(), [&flag_list](int a, int b) { in Parse()
179 return flag_list[a].GetFlagType() < flag_list[b].GetFlagType(); in Parse()
184 const Flag& flag = flag_list[sorted_idx[idx]]; in Parse()
272 const std::vector<Flag>& flag_list) { in Usage() argument
274 std::vector<int> sorted_idx(flag_list.size()); in Usage()
276 std::sort(sorted_idx.begin(), sorted_idx.end(), [&flag_list](int a, int b) { in Usage()
277 return flag_list[a].GetFlagType() < flag_list[b].GetFlagType(); in Usage()
285 const Flag& flag = flag_list[sorted_idx[i]]; in Usage()
[all …]
/external/tensorflow/tensorflow/compiler/jit/
Dflags.cc38 std::vector<Flag>* flag_list; variable
76 void AppendMarkForCompilationPassFlagsInternal(std::vector<Flag>* flag_list) { in AppendMarkForCompilationPassFlagsInternal() argument
133 flag_list->insert(flag_list->end(), new_flags.begin(), new_flags.end()); in AppendMarkForCompilationPassFlagsInternal()
187 flag_list = new std::vector<Flag>( in AllocateAndParseFlags()
239 AppendMarkForCompilationPassFlagsInternal(flag_list); in AllocateAndParseFlags()
240 xla::ParseFlagsFromEnvAndDieIfUnknown("TF_XLA_FLAGS", *flag_list); in AllocateAndParseFlags()
295 void AppendMarkForCompilationPassFlags(std::vector<Flag>* flag_list) { in AppendMarkForCompilationPassFlags() argument
297 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/lite/tools/evaluation/tasks/
Dtask_executor.cc24 auto flag_list = GetFlags(); in Run() local
27 flag_list.insert(flag_list.end(), delegate_flags.begin(), in Run()
30 tflite::Flags::Parse(argc, const_cast<const char**>(argv), flag_list); in Run()
32 std::string usage = Flags::Usage(argv[0], flag_list); in Run()
/external/tensorflow/tensorflow/compiler/aot/
Dtfcompile_main.cc72 std::vector<tensorflow::Flag> flag_list; in main() local
73 AppendMainFlags(&flag_list, &flags); in main()
74 xla::AppendDebugOptionsFlags(&flag_list); in main()
77 usage += tensorflow::Flags::Usage(argv[0], flag_list); in main()
82 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
88 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.cc50 std::vector<tensorflow::Flag> flag_list = { in TestParseFlagsFromEnv() local
57 bool parsed_ok = ParseFlagsFromEnvAndDieIfUnknown("TF_XLA_FLAGS", flag_list); in TestParseFlagsFromEnv()
167 const std::vector<tensorflow::Flag> flag_list = { in main() local
172 xla::string usage = tensorflow::Flags::Usage(argv[0], flag_list); in main()
174 xla::ParseFlagsFromEnvAndDieIfUnknown("TF_XLA_FLAGS", flag_list); in main()
178 parse_ok = tensorflow::Flags::Parse(&argc, argv, flag_list); in main()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/tests/
Dhlo_to_llvm_ir.cc86 std::vector<tensorflow::Flag> flag_list; in main() local
87 xla::AppendDebugOptionsFlags(&flag_list); in main()
91 kUsage, "\n\n", tensorflow::Flags::Usage(argv[0], flag_list)); in main()
92 bool 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))

123