Home
last modified time | relevance | path

Searched refs:FindWithDefault (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/core/grappler/
Dgraph_view.h116 return gtl::FindWithDefault(nodes_, node_name, nullptr); in GetNode()
141 return gtl::FindWithDefault(fanouts_, port, fanout_not_found_value_); in GetFanout()
157 gtl::FindWithDefault(max_regular_input_port_, port.node, -1) + 1; in GetFanin()
173 gtl::FindWithDefault(max_regular_input_port_, port.node, -1)) { in GetRegularFanin()
189 gtl::FindWithDefault(max_regular_input_port_, &node, -1) + 1; in HasFanin()
214 gtl::FindWithDefault(max_regular_output_port_, &node, -1); in GetFanouts()
234 : gtl::FindWithDefault(max_regular_input_port_, &node, -1); in GetFanins()
250 return gtl::FindWithDefault(max_regular_input_port_, &node, -1) + 1; in NumFanins()
262 gtl::FindWithDefault(max_regular_output_port_, &node, -1); in NumFanouts()
283 gtl::FindWithDefault(max_regular_output_port_, &node, -1); in GetFanoutEdges()
[all …]
Dmutable_graph_view.cc696 gtl::FindWithDefault(max_regular_output_port(), node, -1); in SwapNodeNames()
1133 gtl::FindWithDefault(max_regular_input_port(), node, -1); in RemoveRegularFaninByPort()
1345 gtl::FindWithDefault(max_regular_input_port(), node, -1); in UpdateRegularFaninByPort()
1386 gtl::FindWithDefault(max_regular_input_port(), node, -1); in SwapRegularFaninsByPorts()
1501 const int max_port = gtl::FindWithDefault(max_regular_output_port(), node, in CheckNodesCanBeDeleted()
1617 gtl::FindWithDefault(max_regular_output_port(), deleted_node, -1); in RemoveFanoutsInternal()
/external/tensorflow/tensorflow/core/lib/gtl/
Dmap_util_test.cc33 EXPECT_EQ("", gtl::FindWithDefault(m, "foo", "")); in TEST()
35 EXPECT_EQ("bar", gtl::FindWithDefault(m, "foo", "")); in TEST()
Dmap_util.h87 const typename Collection::value_type::second_type& FindWithDefault( in FindWithDefault() function
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_bootstrap_unittest.cc178 FindWithDefault(vpath_map, file_parameter[0], file_parameter[0]); in TEST()
180 FindWithDefault(rpath_map, file_parameter[0], file_parameter[0]); in TEST()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module.cc175 HloComputation* new_arg = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
183 HloComputation* new_condition = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
188 HloComputation* new_body = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
197 HloComputation* new_computation = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
206 HloComputation* new_select = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
211 HloComputation* new_scatter = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
229 entry_computation_ = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
Dhlo_graph_dumper.cc514 tensorflow::gtl::FindWithDefault(node_ids_, from_node, -1); in Header()
519 to_node ? tensorflow::gtl::FindWithDefault(node_ids_, to_node, -1) in Header()
/external/tensorflow/tensorflow/core/framework/
Dfunction_handle_cache.cc44 h = gtl::FindWithDefault(handles_, key, kInvalidHandle); in Instantiate()
Dop.cc95 gtl::FindWithDefault(registry_, op_type_name, nullptr)) { in LookUp()
112 res = gtl::FindWithDefault(registry_, op_type_name, nullptr); in LookUpSlow()
/external/tensorflow/tensorflow/core/common_runtime/
Dmemory_types.cc81 MemoryType sm = gtl::FindWithDefault(out, {e->src()->id(), e->src_output()}, in ProcessMemoryTypes()
83 MemoryType dm = gtl::FindWithDefault(inp, {e->dst()->id(), e->dst_input()}, in ProcessMemoryTypes()
Dprocess_function_library_runtime.cc283 return gtl::FindWithDefault(table_, function_key, kInvalidHandle); in GetHandle()
1260 gtl::FindWithDefault(table_, function_key, kInvalidHandle); in InstantiateRemote()
/external/tensorflow/tensorflow/core/profiler/convert/
Dop_stats_to_pod_stats.cc48 ps += gtl::FindWithDefault(generic.type_ps(), event_type, /*value=*/0); in CreatePodStatsRecord()
Dxplane_to_memory_profile.cc464 auto new_index = gtl::FindWithDefault(index_map, orig_index, -1); in SampleSnapshots()
Dop_stats_to_input_pipeline_analysis.cc109 return PicosToMillis(gtl::FindWithDefault(type_ps, event_type, /*value=*/0)); in GetTimeInMs()
/external/tensorflow/tensorflow/core/util/
Dtensor_slice_reader.h168 int idx = gtl::FindWithDefault(fname_to_index_, fname, -1); in CopySliceData()
Dtensor_slice_writer.h108 int index = gtl::FindWithDefault(name_to_index_, name, -1); in Add()
/external/protobuf/src/google/protobuf/util/internal/
Dtype_info.cc117 StringPiece name = FindWithDefault( in FindField()
/external/tensorflow/tensorflow/python/framework/
Dpython_api_info.cc239 gtl::FindWithDefault(param_name_to_index, attr_def.name(), -1); in InitializeAttribute()
307 gtl::FindWithDefault(param_name_to_index, arg_def.name(), -1); in InitializeInput()
/external/protobuf/src/google/protobuf/
Ddescriptor_database.cc247 return FindWithDefault(by_name_, filename, Value()); in FindFile()
264 return FindWithDefault( in FindExtension()
Dtext_format.cc1957 const FastFieldValuePrinter* printer = FindWithDefault( in PrintAny()
2233 const FastFieldValuePrinter* printer = FindWithDefault( in PrintField()
2297 const FastFieldValuePrinter* printer = FindWithDefault( in PrintFieldName()
2311 const FastFieldValuePrinter* printer = FindWithDefault( in PrintFieldValue()
/external/tensorflow/tensorflow/core/kernels/
Dlookup_table_op.h257 value_values(i) = gtl::FindWithDefault( in DoFind()
Dword2vec_kernels.cc232 corpus_.push_back(gtl::FindWithDefault(word_id, w, kUnkId)); in Init()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_worker_service.cc89 i < gtl::FindWithDefault(queue_depth_, \
154 i < gtl::FindWithDefault( in HandleRPCsLoop()
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_subgraphs_pass.cc714 Node* src_image = gtl::FindWithDefault(node_images, edge->src(), nullptr); in CopySubgraphEdges()
715 Node* dst_image = gtl::FindWithDefault(node_images, edge->dst(), nullptr); in CopySubgraphEdges()
/external/protobuf/src/google/protobuf/stubs/
Dmap_util.h123 FindWithDefault(const Collection& collection,

12