Home
last modified time | relevance | path

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

/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.cc693 gtl::FindWithDefault(max_regular_output_port(), node, -1); in SwapNodeNames()
1130 gtl::FindWithDefault(max_regular_input_port(), node, -1); in RemoveRegularFaninByPort()
1342 gtl::FindWithDefault(max_regular_input_port(), node, -1); in UpdateRegularFaninByPort()
1383 gtl::FindWithDefault(max_regular_input_port(), node, -1); in SwapRegularFaninsByPorts()
1498 const int max_port = gtl::FindWithDefault(max_regular_output_port(), node, in CheckNodesCanBeDeleted()
1614 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.h84 const typename Collection::value_type::second_type& FindWithDefault( in FindWithDefault() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module.cc140 HloComputation* new_arg = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
148 HloComputation* new_condition = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
153 HloComputation* new_body = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
162 HloComputation* new_computation = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
171 HloComputation* new_select = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
176 HloComputation* new_scatter = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
194 entry_computation_ = tensorflow::gtl::FindWithDefault( in ReplaceComputations()
Dhlo_graph_dumper.cc508 tensorflow::gtl::FindWithDefault(node_ids_, from_node, -1); in Header()
513 to_node ? tensorflow::gtl::FindWithDefault(node_ids_, to_node, -1) in Header()
/external/tensorflow/tensorflow/core/framework/
Dop.cc67 gtl::FindWithDefault(registry_, op_type_name, nullptr)) { in LookUp()
86 res = gtl::FindWithDefault(registry_, op_type_name, nullptr); in LookUpSlow()
Dfunction_handle_cache.cc42 h = gtl::FindWithDefault(handles_, key, kInvalidHandle); in Instantiate()
Dfunction.cc1259 return gtl::FindWithDefault(func_grad_, func, ""); in FindGradient()
1263 return gtl::FindWithDefault(func_grad_, func, ""); in FindGradientHelper()
/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.cc230 return gtl::FindWithDefault(table_, function_key, kInvalidHandle); in GetHandle()
830 gtl::FindWithDefault(table_, function_key, kInvalidHandle); in Instantiate()
/external/tensorflow/tensorflow/core/util/
Dtensor_slice_reader.h168 int idx = gtl::FindWithDefault(fname_to_index_, fname, -1); in CopySliceData()
Dtensor_slice_writer.h109 int index = gtl::FindWithDefault(name_to_index_, name, -1); in Add()
/external/protobuf/src/google/protobuf/util/internal/
Dtype_info.cc113 FindWithDefault(camel_case_name_table_, camel_case_name, StringPiece()); in FindField()
/external/protobuf/src/google/protobuf/
Ddescriptor_database.cc176 return FindWithDefault(by_name_, filename, Value()); in FindFile()
192 return FindWithDefault( in FindExtension()
Dtext_format.cc1549 const FieldValuePrinter* printer = FindWithDefault( in PrintAny()
1685 const FieldValuePrinter* printer = FindWithDefault( in PrintField()
1747 const FieldValuePrinter* printer = FindWithDefault( in PrintFieldName()
1762 = FindWithDefault(custom_printers_, field, in PrintFieldValue()
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_worker_service.cc89 i < gtl::FindWithDefault(queue_depth_, \
153 i < gtl::FindWithDefault( in HandleRPCsLoop()
/external/tensorflow/tensorflow/core/kernels/
Dlookup_table_op.h255 value_values(i) = gtl::FindWithDefault( in DoFind()
Dword2vec_kernels.cc231 corpus_.push_back(gtl::FindWithDefault(word_id, w, kUnkId)); in Init()
Dlookup_table_op.cc65 value_values(i) = gtl::FindWithDefault( in Find()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dcontext.cc120 return gtl::FindWithDefault(thread_local_async_, std::this_thread::get_id(), in Async()
/external/protobuf/src/google/protobuf/stubs/
Dmap_util.h123 FindWithDefault(const Collection& collection,
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_subgraphs_pass.cc1445 Node* src_image = gtl::FindWithDefault(node_images, edge->src(), nullptr); in CopySubgraphEdges()
1446 Node* dst_image = gtl::FindWithDefault(node_images, edge->dst(), nullptr); in CopySubgraphEdges()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dfunction_optimizer.cc342 return gtl::FindWithDefault(truly_const_nodes_, name, nullptr); in TrulyConstNode()