Home
last modified time | relevance | path

Searched refs:node_id (Results 1 – 25 of 94) sorted by relevance

1234

/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dsplit_collection_operators.cc44 int32 node_id, int32 depth) const { in CreateGrowStats() argument
72 stats_[slot.node_id()] = CreateGrowStats(slot.node_id(), slot.depth()); in ExtractFromProto()
73 stats_[slot.node_id()]->ExtractFromProto(slot); in ExtractFromProto()
88 void SplitCollectionOperator::InitializeSlot(int32 node_id, int32 depth) { in InitializeSlot() argument
89 stats_[node_id] = std::unique_ptr<GrowStats>(CreateGrowStats(node_id, depth)); in InitializeSlot()
90 stats_[node_id]->Initialize(); in InitializeSlot()
95 const std::vector<int>& examples, int32 node_id) const { in AddExample()
96 auto* slot = stats_.at(node_id).get(); in AddExample()
102 bool SplitCollectionOperator::IsInitialized(int32 node_id) const { in IsInitialized()
103 auto it = stats_.find(node_id); in IsInitialized()
[all …]
Dgraph_collection_operator.cc28 int32 node_id, int32 depth) const { in CreateGrowStats() argument
32 int64 GraphRunnerSplitCollectionOperator::UniqueId(int32 node_id, in UniqueId() argument
34 return node_id * num_splits_to_consider_ + split_id; in UniqueId()
37 bool GraphRunnerSplitCollectionOperator::BestSplit(int32 node_id, in BestSplit() argument
42 auto* slot = stats_.at(node_id).get(); in BestSplit()
46 auto& runner = runners_[UniqueId(node_id, i)]; in BestSplit()
61 auto& runner = runners_[UniqueId(node_id, best_index)]; in BestSplit()
70 const std::vector<int>& examples, int32 node_id) const { in AddExample()
85 auto* slot = stats_.at(node_id).get(); in AddExample()
87 auto& runner = runners_[UniqueId(node_id, i)]; in AddExample()
[all …]
Dfertile-stats-resource.cc24 const std::vector<int>& examples, int32 node_id, bool* is_finished) { in AddExampleToStatsAndInitialize() argument
26 if (collection_op_->IsInitialized(node_id)) { in AddExampleToStatsAndInitialize()
27 collection_op_->AddExample(input_data, target, examples, node_id); in AddExampleToStatsAndInitialize()
33 input_data, target, example, node_id); in AddExampleToStatsAndInitialize()
34 if (collection_op_->IsInitialized(node_id)) { in AddExampleToStatsAndInitialize()
40 *is_finished = collection_op_->IsFinished(node_id); in AddExampleToStatsAndInitialize()
43 void FertileStatsResource::AllocateNode(int32 node_id, int32 depth) { in AllocateNode() argument
44 collection_op_->InitializeSlot(node_id, depth); in AllocateNode()
59 bool FertileStatsResource::BestSplit(int32 node_id, SplitCandidate* best, in BestSplit() argument
61 return collection_op_->BestSplit(node_id, best, depth); in BestSplit()
Dsplit_collection_operators.h41 virtual std::unique_ptr<GrowStats> CreateGrowStats(int32 node_id,
55 int32 node_id) const;
60 const InputTarget* target, int example, int32 node_id) const;
63 virtual void InitializeSlot(int32 node_id, int32 depth);
74 virtual void ClearSlot(int32 node_id) { stats_.erase(node_id); } in ClearSlot() argument
77 virtual bool IsInitialized(int32 node_id) const;
80 virtual bool IsFinished(int32 node_id) const { in IsFinished() argument
81 return stats_.at(node_id)->IsFinished(); in IsFinished()
86 virtual bool BestSplit(int32 node_id, SplitCandidate* best,
Dgraph_collection_operator.h48 std::unique_ptr<GrowStats> CreateGrowStats(int32 node_id,
55 int32 node_id) const override;
60 const InputTarget* target, int example, int32 node_id) const override;
62 bool BestSplit(int32 node_id, SplitCandidate* best,
65 void ClearSlot(int32 node_id) override;
68 int64 UniqueId(int32 node_id, int32 split_id) const;
Dfertile-stats-resource.h54 void ResetSplitStats(int32 node_id, int32 depth) { in ResetSplitStats() argument
55 collection_op_->ClearSlot(node_id); in ResetSplitStats()
56 collection_op_->InitializeSlot(node_id, depth); in ResetSplitStats()
70 int32 node_id, bool* is_finished);
82 bool BestSplit(int32 node_id, SplitCandidate* best, int32* depth);
90 void AllocateNode(int32 node_id, int32 depth);
/external/adhd/cras/src/common/
Dcras_messages.h225 cras_node_id_t node_id; member
231 cras_node_id_t node_id, in cras_fill_set_node_attr() argument
236 m->node_id = node_id; in cras_fill_set_node_attr()
246 cras_node_id_t node_id; member
251 cras_node_id_t node_id) in cras_fill_select_node() argument
255 m->node_id = node_id; in cras_fill_select_node()
263 cras_node_id_t node_id; member
268 cras_node_id_t node_id) in cras_fill_add_active_node() argument
272 m->node_id = node_id; in cras_fill_add_active_node()
280 cras_node_id_t node_id; member
[all …]
/external/adhd/cras/src/tests/
Dcras_monitor.c68 cras_node_id_t node_id) in node_array_index_of_node_id() argument
70 uint32_t dev_index = dev_index_of(node_id); in node_array_index_of_node_id()
71 uint32_t node_index = node_index_of(node_id); in node_array_index_of_node_id()
84 cras_node_id_t node_id) in node_name_for_node_id() argument
90 uint32_t iodev_idx = dev_index_of(node_id); in node_name_for_node_id()
95 if (node_id == 0) { in node_name_for_node_id()
101 string_for_direction(dir), node_id); in node_name_for_node_id()
117 iodev_idx, node_index_of(node_id)); in node_name_for_node_id()
120 node_index = node_array_index_of_node_id(nodes, num_nodes, node_id); in node_name_for_node_id()
134 cras_node_id_t node_id) in active_node_changed() argument
[all …]
Dobserver_unittest.cc144 cras_node_id_t node_id) { in cb_active_node_changed() argument
148 cb_active_node_changed_node_id.push_back(node_id); in cb_active_node_changed()
153 cras_node_id_t node_id, in cb_output_node_volume_changed() argument
157 cb_output_node_volume_changed_node_id.push_back(node_id); in cb_output_node_volume_changed()
163 cras_node_id_t node_id, in cb_node_left_right_swapped_changed() argument
167 cb_node_left_right_swapped_changed_node_id.push_back(node_id); in cb_node_left_right_swapped_changed()
173 cras_node_id_t node_id, in cb_input_node_gain_changed() argument
177 cb_input_node_gain_changed_node_id.push_back(node_id); in cb_input_node_gain_changed()
417 const cras_node_id_t node_id = 0x0001000100020002; in TEST_F() local
419 cras_observer_notify_active_node(dir, node_id); in TEST_F()
[all …]
Drclient_unittest.cc544 const cras_node_id_t node_id = 0x0001000200030004; in TEST_F() local
546 send_active_node_changed(void_client, dir, node_id); in TEST_F()
551 EXPECT_EQ(msg->node_id, node_id); in TEST_F()
560 const cras_node_id_t node_id = 0x0001000200030004; in TEST_F() local
563 send_output_node_volume_changed(void_client, node_id, value); in TEST_F()
567 EXPECT_EQ(msg->node_id, node_id); in TEST_F()
577 const cras_node_id_t node_id = 0x0001000200030004; in TEST_F() local
580 send_node_left_right_swapped_changed(void_client, node_id, value); in TEST_F()
584 EXPECT_EQ(msg->node_id, node_id); in TEST_F()
594 const cras_node_id_t node_id = 0x0001000200030004; in TEST_F() local
[all …]
/external/autotest/client/cros/audio/
Dcras_utils.py146 def set_node_volume(node_id, volume): argument
153 get_cras_control_interface().SetOutputNodeVolume(node_id, volume)
225 for node_id in selected_output_node_ids:
226 set_node_volume(node_id, volume)
479 def set_active_input_node(node_id): argument
485 get_cras_control_interface().SetActiveInputNode(node_id)
488 def set_active_output_node(node_id): argument
494 get_cras_control_interface().SetActiveOutputNode(node_id)
497 def add_active_output_node(node_id): argument
503 get_cras_control_interface().AddActiveOutputNode(node_id)
[all …]
/external/autotest/server/site_tests/enterprise_CFM_DualSpeaker/
Denterprise_CFM_DualSpeaker.py90 def _get_cras_speaker_volume(self, node_id): argument
98 if node.node_id == node_id:
101 def _get_mixer_mute_state(self, node_id): argument
110 " | awk -v N=6 '{print $N}'" % node_id)
137 cras_volume = self._get_cras_speaker_volume(node.node_id)
157 for node_id in nodes:
158 amixer_mute = self._get_mixer_mute_state(node_id)
160 logging.info('amixer shows mic is muted for node %s.', node_id)
162 logging.info('amixer shows mix not muted for node %s', node_id)
165 'fails for node %s', node_id)
[all …]
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_control_wrapper.cc180 node_input.set_node_id(node_info->node_id()); in SetupGraph()
216 node_ids[i] = node_input.node_id() + NODE_ID_OFFSET; in SetupGraph()
220 const int node_id = input_params.node_id(); in SetupGraph() local
221 CHECK(inputs_map.count(node_id) == 0); in SetupGraph()
222 inputs_map.emplace(node_id, std::make_tuple(inputs_ptr, count)); in SetupGraph()
237 const int node_id = output_params.node_id(); in SetupGraph() local
238 CHECK(outputs_map.count(node_id) == 0); in SetupGraph()
239 outputs_map.emplace(node_id, std::make_tuple(outputs_ptr, count)); in SetupGraph()
249 const int node_id = params.node_id(); in SetupGraph() local
257 CHECK(dummy_const_data_.count(node_id) == 0); in SetupGraph()
[all …]
Dgraph_transferer.cc158 const int node_id = node_name_to_id_cache_map_.at(node_name); in LoadGraphFromProto() local
159 const Node* node = node_name_cache_list_.at(node_id); in LoadGraphFromProto()
237 input_map.emplace(input.node_id(), &input); in SortParams()
245 const int node_id = params.node_id(); in SortParams() local
248 output_node_ids.emplace_back(node_id); in SortParams()
252 dependency_map.emplace(std::piecewise_construct, std::make_tuple(node_id), in SortParams()
257 CHECK_EQ(input_map.count(node_id), 1); in SortParams()
259 input_map.at(node_id)->node_input()) { in SortParams()
260 dependency_map.at(node_id).emplace(node_input.node_id()); in SortParams()
297 const int node_id = node_name_cache_list_.size() - 1; in CacheNode() local
[all …]
/external/adhd/cras/src/server/
Dcras_observer.c54 cras_node_id_t node_id; member
58 cras_node_id_t node_id; member
63 cras_node_id_t node_id; member
171 node_data->node_id); in active_node_alert()
185 node_data->node_id, in output_node_volume_alert()
200 node_data->node_id, in node_left_right_swapped_alert()
215 node_data->node_id, in input_node_gain_alert()
442 cras_node_id_t node_id) in cras_observer_notify_active_node() argument
447 data.node_id = node_id; in cras_observer_notify_active_node()
452 void cras_observer_notify_output_node_volume(cras_node_id_t node_id, in cras_observer_notify_output_node_volume() argument
[all …]
Dcras_rclient.c132 cras_node_id_t node_id) in handle_get_hotword_models() argument
140 hotword_models = cras_iodev_list_get_hotword_models(node_id); in handle_get_hotword_models()
211 cras_node_id_t node_id) in send_active_node_changed() argument
216 cras_fill_client_active_node_changed(&msg, dir, node_id); in send_active_node_changed()
221 cras_node_id_t node_id, in send_output_node_volume_changed() argument
227 cras_fill_client_output_node_volume_changed(&msg, node_id, volume); in send_output_node_volume_changed()
232 cras_node_id_t node_id, in send_node_left_right_swapped_changed() argument
239 &msg, node_id, swapped); in send_node_left_right_swapped_changed()
244 cras_node_id_t node_id, in send_input_node_gain_changed() argument
250 cras_fill_client_input_node_gain_changed(&msg, node_id, gain); in send_input_node_gain_changed()
[all …]
/external/adhd/cras/src/libcras/
Dcras_client.h390 const cras_node_id_t node_id,
425 cras_node_id_t node_id,
439 cras_node_id_t node_id);
451 cras_node_id_t node_id);
463 cras_node_id_t node_id);
889 cras_node_id_t node_id,
900 cras_node_id_t node_id, int enable);
910 cras_node_id_t node_id,
987 cras_node_id_t node_id,
1003 cras_node_id_t node_id,
[all …]
/external/ltp/testcases/kernel/syscalls/getcpu/
Dgetcpu01.c96 unsigned int cpu_id, node_id = 0; in main() local
127 TEST(getcpu(&cpu_id, &node_id, NULL)); in main()
136 else if (node_id != node_set) { in main()
139 node_set, node_id); in main()
146 node_id); in main()
162 static inline int getcpu(unsigned *cpu_id, unsigned *node_id, in getcpu() argument
166 return syscall(318, cpu_id, node_id, cache_struct); in getcpu()
268 int node_id = 0; in get_nodeid() local
290 node_id = in get_nodeid()
299 return node_id; in get_nodeid()
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/trees/
Ddecision_tree.cc33 int32 node_id = sub_root_id; in Traverse() local
35 const auto& current_node = config.nodes(node_id); in Traverse()
38 return node_id; in Traverse()
42 node_id = example.dense_float_features[split.feature_column()] <= in Traverse()
57 node_id = !sparse_feature[dimension_id].has_value() || in Traverse()
72 node_id = sparse_feature[dimension_id].has_value() && in Traverse()
83 node_id = features.find(split.feature_id()) != features.end() in Traverse()
92 node_id = split.right_id(); in Traverse()
97 node_id = split.left_id(); in Traverse()
108 DCHECK_NE(node_id, 0) << "Malformed tree, cycles found to root:" in Traverse()
/external/v8/tools/turbolizer/
Dschedule-view.js38 node_id: Number(matches[0]),
47 view.select(function(location) { return location.node_id == id; }, true, true);
55 node_id: GOTO_STYLE.goto_id--,
113 locations.push({ node_id : id }); property
122 if (i.location.node_id != undefined && i.location.node_id > 0) {
123 s.add(i.location.node_id);
Dselection-broker.js54 if (location.node_id != undefined) {
55 newLocation.node_id = location.node_id;
62 newLocation.node_id != undefined) {
63 if (broker.nodePositionMap && broker.nodePositionMap[location.node_id]) {
64 newLocation.pos_start = broker.nodePositionMap[location.node_id];
/external/tensorflow/tensorflow/contrib/hvx/hexagon_controller/src_soc_interface/
Dsoc_interface.c181 int input_count, const int* const node_id, const int* const port) { in soc_interface_SetOneNodeInputs() argument
188 s_node_inputs_array[index].src_id = node_id[i]; in soc_interface_SetOneNodeInputs()
212 bool soc_interface_AppendConstNode(const char* const name, int node_id, in soc_interface_AppendConstNode() argument
217 name, graph_id, node_id, batch, height, width, depth, data, data_length); in soc_interface_AppendConstNode()
219 TFMLOGE("Failed to append const node %d", node_id); in soc_interface_AppendConstNode()
226 bool soc_interface_AppendNode(const char* const name, int node_id, int ops_id, in soc_interface_AppendNode() argument
232 name, graph_id, node_id, ops_id, padding_id, (hexagon_nn_input*)inputs, in soc_interface_AppendNode()
235 TFMLOGE("Failed to append const node %d", node_id); in soc_interface_AppendNode()
/external/autotest/client/cros/multimedia/
Daudio_extension_handler.py232 def set_active_node_id(self, node_id): argument
250 if node['id'] == str(node_id):
255 logging.error('Node %s not found.', node_id)
259 logging.debug('Node %s is already active.', node_id)
262 logging.debug('Setting active id to %s', node_id)
274 % (stream_type, node_id))
/external/autotest/client/common_lib/cros/cfm/
Dcras_output_node.py7 def __init__(self, node_id, node_type, node_name, volume, device_id, argument
9 self.node_id = node_id
18 'Volume: %d' % (self.node_id, self.node_name, self.device_id,
Dcras_input_node.py7 def __init__(self, node_id, node_name, gain, node_type, device_id, argument
9 self.node_id = node_id
18 'Gain: %d' % (self.node_id, self.node_name, self.device_id,

1234