tensorflow/core/runtime_fallback/bef_executor_flags.cc
// AbslParseFlag/AbslUnparseFlag need to be in tfrt namespace for ADL to work.
AbslParseFlag/AbslUnparseFlag need to be in tfrt namespace for ADL to work.
AbslParseFlag / AbslUnparseFlag need to be in tfrt namespace for ADL to work .
bool AbslParseFlag(absl::string_view text,
                   tfrt::HostAllocatorTypeWrapper* host_allocator_type,
                   std::string* error) {
  if (text == "malloc") {
    *host_allocator_type = {tfrt::HostAllocatorType::kMalloc};
    return true;
  }
  if (text == "profiled_allocator") {
    *host_allocator_type = {tfrt::HostAllocatorType::kProfiledMalloc};
    return true;
  }
  if (text == "leak_check_allocator") {
    *host_allocator_type = {tfrt::HostAllocatorType::kLeakCheckMalloc};
    return true;
  }
  *error = "Unknown value for tfrt::HostAllocatorType";
  return false;
}
bool AbslParseFlag ( absl :: string_view text , tfrt :: HostAllocatorTypeWrapper * host_allocator_type , std :: string * error ) { if ( text == " " ) { * host_allocator_type = { tfrt :: HostAllocatorType :: kMalloc } ; return true ; } if ( text == " " ) { * host_allocator_type = { tfrt :: HostAllocatorType :: kProfiledMalloc } ; return true ; } if ( text == " " ) { * host_allocator_type = { tfrt :: HostAllocatorType :: kLeakCheckMalloc } ; return true ; } * error = " " ; return false ; }
AbslParseFlag/AbslUnparseFlag need to be in tfrt namespace for ADL to work.
AbslParseFlag / AbslUnparseFlag need to be in tfrt namespace for ADL to work .