/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | xnnpack_delegate.cc | 152 const int node_index = params->nodes_to_replace->data[i]; in Create() local 156 if (context->GetNodeAndRegistration(context, node_index, &node, in Create() 171 if (delegate->static_unpack_nodes_.count(node_index) != 0) { in Create() 499 const int node_index = params->nodes_to_replace->data[i]; in Create() local 500 if (delegate->static_unpack_nodes_.count(node_index)) { in Create() 508 if (context->GetNodeAndRegistration(context, node_index, &node, in Create() 513 if (VisitNode(subgraph.get(), context, registration, node, node_index, in Create() 579 int node_index) { in CalculatePadding() argument 591 static_cast<int>(padding), node_index); in CalculatePadding() 597 TfLiteContext* context, int node_index, TfLiteFusedActivation activation, in ConvertActivationToOutputRange() argument [all …]
|
/external/tensorflow/tensorflow/lite/ |
D | graph_info.cc | 46 for (auto node_index : TfLiteIntArrayView(nodes_to_partition)) { in PartitionGraphIntoIndependentNodeSubsetsImpl() local 47 node_type_[node_index] = NodeSubset::kTfPartition; in PartitionGraphIntoIndependentNodeSubsetsImpl() 77 for (int node_index = 0; node_index < info_->num_execution_nodes(); in Partition() local 78 node_index++) { in Partition() 79 const TfLiteNode& node = info_->node(node_index); in Partition() 137 bool UpdateNode(int node_index) { in UpdateNode() argument 138 const TfLiteNode& node = info_->node(node_index); in UpdateNode() 142 if (node_epochs_[node_index] != kEpochNotReady) { in UpdateNode() 155 if (control_deps_[node_index] != -1 && in UpdateNode() 156 node_epochs_[control_deps_[node_index]] == kEpochNotReady) { in UpdateNode() [all …]
|
D | optional_debug_tools.cc | 404 for (size_t node_index = 0; node_index < subgraph.nodes_size(); in PrintInterpreterState() local 405 node_index++) { in PrintInterpreterState() 406 replaced_node_bits[node_index] = false; in PrintInterpreterState() 408 subgraph.node_and_registration(static_cast<int>(node_index)); in PrintInterpreterState() 416 replaced_by_node[nid] = node_index; in PrintInterpreterState() 420 for (size_t node_index = 0; node_index < subgraph.nodes_size(); in PrintInterpreterState() local 421 node_index++) { in PrintInterpreterState() 423 subgraph.node_and_registration(static_cast<int>(node_index)); in PrintInterpreterState() 432 if (replaced_node_bits[node_index]) { in PrintInterpreterState() 434 delegated_status.append(std::to_string(replaced_by_node[node_index])); in PrintInterpreterState() [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | subgraph_test_util.cc | 114 int node_index; in BuildAddSubgraph() local 116 params, add_reg, &node_index); in BuildAddSubgraph() 145 int node_index; in BuildMulSubgraph() local 147 params, mul_reg, &node_index); in BuildMulSubgraph() 175 int node_index; in BuildPadSubgraph() local 177 params, pad_reg, &node_index); in BuildPadSubgraph() 210 int node_index; in BuildIfSubgraph() local 212 nullptr, 0, params, if_reg, &node_index); in BuildIfSubgraph() 243 int node_index; in BuildLessEqualCondSubgraph() local 245 0, nullptr, le_reg, &node_index); in BuildLessEqualCondSubgraph() [all …]
|
D | variable_ops_test.cc | 66 int node_index; in ConstructInvalidGraph() local 68 var_handle_registration_, &node_index); in ConstructInvalidGraph() 70 read_registration_, &node_index); in ConstructInvalidGraph() 101 int node_index; in ConstructGraph() local 105 var_handle_registration_, &node_index); in ConstructGraph() 107 assign_registration_, &node_index); in ConstructGraph() 109 read_registration_, &node_index); in ConstructGraph()
|
D | hashtable_ops_test.cc | 118 int node_index; in BuildDefaultGraph() local 123 &node_index); in BuildDefaultGraph() 128 nullptr, hashtable_import_registration_, &node_index); in BuildDefaultGraph() 134 &node_index); in BuildDefaultGraph() 139 hashtable_size_registration_, &node_index); in BuildDefaultGraph() 145 int node_index; in BuildNoImportGraph() local 150 &node_index); in BuildNoImportGraph() 156 &node_index); in BuildNoImportGraph() 161 hashtable_size_registration_, &node_index); in BuildNoImportGraph() 167 int node_index; in BuildImportTwiceGraph() local [all …]
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | node.py | 105 node_index = len(self.layer._inbound_nodes) - 1 108 layer=layer, node_index=node_index, tensor_index=i) 125 node_index = kt._keras_history.node_index 127 node_deps.append(layer._inbound_nodes[node_index]) 139 node_index = keras_history.node_index 141 yield layer, node_index, tensor_index, kt 173 node_index = kh.node_index 174 node_key = make_node_key(kh.layer.name, node_index) 202 node_index = kh.node_index 203 node_key = make_node_key(kh.layer.name, node_index)
|
D | functional.py | 182 layer, node_index, tensor_index = x._keras_history # pylint: disable=protected-access 184 self._output_coordinates.append((layer, node_index, tensor_index)) 188 layer, node_index, tensor_index = x._keras_history # pylint: disable=protected-access 191 assert node_index == 0 194 self._input_coordinates.append((layer, node_index, tensor_index)) 467 input_layer_key = kh.layer.name + '_%s_%s' % (kh.node_index, 480 node_index = layer._inbound_nodes.index(node) # pylint: disable=protected-access 482 shape_key = layer.name + '_%s_%s' % (node_index, j) 488 layer, node_index, tensor_index = self._output_coordinates[i] 489 shape_key = layer.name + '_%s_%s' % (node_index, tensor_index) [all …]
|
/external/google-breakpad/src/processor/ |
D | static_map-inl.h | 133 int node_index = 0; in ValidateInMemoryStructure() local 142 if (offsets_[node_index] != static_cast<uint32_t>(first_offset)) { in ValidateInMemoryStructure() 148 for (node_index = 1; node_index < num_nodes_; ++node_index) { in ValidateInMemoryStructure() 150 if (offsets_[node_index] <= offsets_[node_index - 1]) { in ValidateInMemoryStructure() 155 if (compare_(GetKeyAtIndex(node_index), in ValidateInMemoryStructure() 156 GetKeyAtIndex(node_index - 1)) <= 0) { in ValidateInMemoryStructure()
|
/external/tensorflow/tensorflow/lite/core/api/ |
D | profiler.h | 127 ScopedOperatorProfile(Profiler* profiler, const char* tag, int node_index) in ScopedOperatorProfile() argument 129 static_cast<uint32_t>(node_index)) {} in ScopedOperatorProfile() 135 int node_index) in ScopedDelegateOperatorProfile() argument 138 static_cast<uint32_t>(node_index)) {} in ScopedDelegateOperatorProfile() 175 #define TFLITE_SCOPED_TAGGED_OPERATOR_PROFILE(profiler, tag, node_index) \ argument 177 (profiler), (tag), (node_index)) 179 #define TFLITE_SCOPED_DELEGATE_OPERATOR_PROFILE(profiler, tag, node_index) \ argument 181 _profile_, __COUNTER__)((profiler), (tag), (node_index))
|
/external/tensorflow/tensorflow/lite/core/ |
D | subgraph.cc | 76 int node_index, const char* message) { in ReportOpError() argument 78 context, "Node number %d (%s) %s.\n", node_index, in ReportOpError() 184 int node_index = subgraph_->execution_plan()[index]; in node() local 185 return subgraph_->nodes_and_registration()[node_index].first; in node() 187 size_t node_index(size_t index) const override { in node_index() function in tflite::InterpreterInfo 242 for (int node_index = 0; node_index < nodes_and_registration_.size(); in ~Subgraph() local 243 ++node_index) { in ~Subgraph() 244 CleanupNode(node_index); in ~Subgraph() 258 void Subgraph::CleanupNode(int node_index) { in CleanupNode() argument 259 TfLiteNode& node = nodes_and_registration_[node_index].first; in CleanupNode() [all …]
|
/external/tensorflow/tensorflow/core/grappler/utils/ |
D | graph_view_internal.h | 49 NodeIndexAndPortIndex(GraphViewT* graph_view, int node_index, int port_index) in NodeIndexAndPortIndex() argument 51 node_index_(node_index), in NodeIndexAndPortIndex() 73 int node_index() const { return node_index_; } in node_index() function 130 explicit NodeViewInternal(GraphViewT* graph_view, int node_index) in NodeViewInternal() argument 132 node_index_(node_index), in NodeViewInternal() 133 attrs_(AttrSlice(graph_view->graph()->node(node_index))) {} in NodeViewInternal() 156 int node_index() const { return node_index_; } in node_index() function 293 const NodeViewT* GetNode(int node_index) const { in GetNode() argument 295 if (node_index < 0 || node_index >= nodes_size) { in GetNode() 298 return &nodes_[node_index]; in GetNode() [all …]
|
D | graph_view.h | 48 FaninView(GraphView* graph_view, int node_index, int port_index) in FaninView() argument 49 : NodeIndexAndPortIndex(graph_view, node_index, port_index) {} in FaninView() 65 FanoutView(GraphView* graph_view, int node_index, int port_index) in FanoutView() argument 66 : NodeIndexAndPortIndex(graph_view, node_index, port_index) {} in FanoutView() 82 explicit NodeView(GraphView* graph_view, int node_index) in NodeView() argument 83 : NodeViewInternal(graph_view, node_index) {} in NodeView() 143 MutableFaninView(MutableGraphView* graph_view, int node_index, int port_index) in MutableFaninView() argument 144 : NodeIndexAndPortIndex(graph_view, node_index, port_index) {} in MutableFaninView() 146 explicit MutableFaninView(MutableGraphView* graph_view, int node_index, in MutableFaninView() argument 148 : NodeIndexAndPortIndex(graph_view, node_index, port_index), in MutableFaninView() [all …]
|
D | pattern_utils.cc | 74 node_label_to_index_[pattern.label] = node_view->node_index(); in DoesOpTypePatternMatch() 76 matched_node_indices_.insert(node_view->node_index()); in DoesOpTypePatternMatch() 78 remove_node_indices_.insert(node_view->node_index()); in DoesOpTypePatternMatch() 80 } else if (node_label_to_index_[pattern.label] != node_view->node_index()) { in DoesOpTypePatternMatch() 83 DCHECK(node_label_to_index_[pattern.label] == node_view->node_index()); in DoesOpTypePatternMatch() 123 graph_view_->GetNode(graph_children[0].node_index()); in DoesOpTypePatternMatch() 129 auto child_node_index = graph_children[i].node_index(); in DoesOpTypePatternMatch()
|
D | graph_view.cc | 111 const int node_index = node_index_by_name_.size(); in AddUniqueNodeInternal() local 112 auto it = node_index_by_name_.emplace(node->name(), node_index); in AddUniqueNodeInternal() 114 nodes_.emplace_back(this, node_index); in AddUniqueNodeInternal() 124 const int node_index = node_view->node_index_; in CheckAndAddFaninsInternal() local 147 fanin_node_view.controlled_fanouts_.emplace_back(this, node_index, in CheckAndAddFaninsInternal() 161 this, node_index, node_view->regular_fanins_.size()); in CheckAndAddFaninsInternal() 285 graph_view_->nodes_[updated_nodes_.back().node_index].update_index_ = in RemoveNode() 430 graph_view_->nodes_[update.node_index].update_index_ = in Reset() 493 const int node_index = node_index_by_name_.size(); in AddUniqueNodeInternal() local 494 auto it = node_index_by_name_.emplace(node->name(), node_index); in AddUniqueNodeInternal() [all …]
|
D | graph_view_internal_test.cc | 66 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 90 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 114 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 138 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 184 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 223 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 307 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 342 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 366 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() 398 MutableNodeViewDiff diff(&graph_view, d_node->node_index()); in TEST() [all …]
|
D | graph_view_test.cc | 341 EXPECT_EQ(a_fanins[0], FanoutViewType(&graph_view, b_node->node_index(), 2)); in TYPED_TEST() 342 EXPECT_EQ(a_fanins[1], FanoutViewType(&graph_view, d_node->node_index(), 3)); in TYPED_TEST() 343 EXPECT_EQ(a_fanins[2], FanoutViewType(&graph_view, b_node->node_index(), 2)); in TYPED_TEST() 344 EXPECT_EQ(a_fanins[3], FanoutViewType(&graph_view, d_node->node_index(), 3)); in TYPED_TEST() 368 EXPECT_EQ(a_fanin_0, FanoutViewType(&graph_view, b_node->node_index(), 2)); in TYPED_TEST() 370 EXPECT_EQ(a_fanin_1, FanoutViewType(&graph_view, d_node->node_index(), 3)); in TYPED_TEST() 372 EXPECT_EQ(a_fanin_2, FanoutViewType(&graph_view, b_node->node_index(), 2)); in TYPED_TEST() 374 EXPECT_EQ(a_fanin_3, FanoutViewType(&graph_view, d_node->node_index(), 3)); in TYPED_TEST() 409 EXPECT_EQ(a_fanins[0], FanoutViewType(&graph_view, c_node->node_index(), in TYPED_TEST() 413 FanoutViewType d_control_fanin(&graph_view, d_node->node_index(), in TYPED_TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_pair_regalloc.c | 518 unsigned int i, input_node, node_count, node_index; in do_advanced_regalloc() local 532 for (var_ptr = variables, node_index = 0; var_ptr; in do_advanced_regalloc() 533 var_ptr = var_ptr->Next, node_index++) { in do_advanced_regalloc() 539 node_classes[node_index] = ra_state->class_ids[class_index]; in do_advanced_regalloc() 572 for (node_index = 0; node_index < node_count; node_index++) { in do_advanced_regalloc() 573 ra_set_node_class(graph, node_index, node_classes[node_index]); in do_advanced_regalloc() 577 for (var_ptr = variables, node_index = 0; var_ptr; in do_advanced_regalloc() 578 var_ptr = var_ptr->Next,node_index++) { in do_advanced_regalloc() 582 for (a = var_ptr, b = var_ptr->Next, b_index = node_index + 1; in do_advanced_regalloc() 590 node_index, b_index); in do_advanced_regalloc() [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | remapper.cc | 403 bool FindContractionWithBias(const RemapperContext& ctx, int node_index, in FindContractionWithBias() argument 406 const auto* node_view = ctx.graph_view.GetNode(node_index); in FindContractionWithBias() 432 const ContractionWithBiasAdd pattern{contraction_node_view->node_index(), in FindContractionWithBias() 433 node_index}; in FindContractionWithBias() 444 const RemapperContext& ctx, int node_index, in FindContractionWithBiasAndActivation() argument 446 const auto* node_view = ctx.graph_view.GetNode(node_index); in FindContractionWithBiasAndActivation() 461 if (!FindContractionWithBias(ctx, bias_add_node_view->node_index(), &base, in FindContractionWithBiasAndActivation() 485 base.bias_add, node_index}; in FindContractionWithBiasAndActivation() 494 bool FindConv2DWithSqueezeAndBias(const RemapperContext& ctx, int node_index, in FindConv2DWithSqueezeAndBias() argument 496 const auto* node_view = ctx.graph_view.GetNode(node_index); in FindConv2DWithSqueezeAndBias() [all …]
|
/external/icing/icing/legacy/index/ |
D | icing-dynamic-trie.h | 97 Next(uint8_t val, uint32_t node_index) { in Next() argument 99 used.node_index = node_index; in Next() 105 uint32_t node_index() const { return used.node_index; } in node_index() function 106 void set_node_index(uint32_t node_index) { used.node_index = node_index; } in set_node_index() argument 115 return node_index() < next2.node_index(); 127 uint32_t node_index : 24; member 532 void LeftBranchToLeaf(uint32_t node_index);
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | layer_utils.py | 28 def get_source_inputs(tensor, layer=None, node_index=None): argument 46 if layer is None or node_index: 47 layer, node_index, _ = tensor._keras_history 51 node = layer._inbound_nodes[node_index] 57 for layer, node_index, _, tensor in node.iterate_inbound(): 58 previous_sources = get_source_inputs(tensor, layer, node_index) 229 for inbound_layer, node_index, tensor_index, _ in node.iterate_inbound(): 230 connections.append('{}[{}][{}]'.format(inbound_layer.name, node_index,
|
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/ |
D | call_test.cc | 62 int node_index; in BuildCallSubgraph() local 67 &node_index); in BuildCallSubgraph() 68 ASSERT_EQ(node_index, expected_node_index); in BuildCallSubgraph() 112 int node_index; in BuildGraphWithMultipleOutputs() local 115 ::tflite::ops::builtin::Register_MUL(), &node_index); in BuildGraphWithMultipleOutputs() 121 ::tflite::ops::builtin::Register_ADD(), &node_index); in BuildGraphWithMultipleOutputs() 149 int expected_node_index = 0, node_index; in BuildMultiNodeGraph() local 156 pad_reg, &node_index); in BuildMultiNodeGraph() 157 ASSERT_EQ(node_index, expected_node_index++); in BuildMultiNodeGraph() 174 &node_index); in BuildMultiNodeGraph() [all …]
|
/external/tensorflow/tensorflow/lite/profiling/ |
D | profile_summarizer.cc | 30 uint32_t node_index; member 72 uint32_t node_index) { in GetOperatorDetails() argument 75 auto node_reg = subgraph->node_and_registration(node_index); in GetOperatorDetails() 141 const auto node_index = event->event_metadata; in ProcessProfiles() local 144 GetOperatorDetails(interpreter, subgraph_index, node_index); in ProcessProfiles() 154 node_name + ":" + std::to_string(node_index); in ProcessProfiles()
|
/external/arm-trusted-firmware/lib/psci/ |
D | psci_setup.c | 127 unsigned int node_index = 0U, num_children; in populate_power_domain_tree() local 155 for (j = node_index; in populate_power_domain_tree() 156 j < (node_index + num_children); j++) in populate_power_domain_tree() 161 node_index = j; in populate_power_domain_tree() 171 node_index = 0; in populate_power_domain_tree()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | control_flow_deps_to_chains.cc | 70 std::map<string, int> node_index; in Run() local 72 node_index.emplace(body_graph->node_def(i).name(), i); in Run() 84 node_index[body_graph->signature().control_output(i)]); in Run() 205 node_index.clear(); in Run() 207 node_index.emplace(modified_body.node_def(i).name(), i); in Run() 212 modified_body.node_def(node_index[modified_sig.control_output(i)]); in Run() 215 NodeDef* first_node = modified_body.mutable_node_def(node_index[r]); in Run()
|