Home
last modified time | relevance | path

Searched refs:new_nodes (Results 1 – 25 of 29) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages03.c43 static unsigned long *new_nodes[2]; variable
67 new_nodes[0] = SAFE_MALLOC(nodemask_size); in setup()
68 new_nodes[1] = SAFE_MALLOC(nodemask_size); in setup()
69 memset(new_nodes[0], 0, nodemask_size); in setup()
70 memset(new_nodes[1], 0, nodemask_size); in setup()
71 set_bit(new_nodes[0], nodes[0], 1); in setup()
72 set_bit(new_nodes[1], nodes[1], 1); in setup()
89 if (mbind(test_pages[n], page_size, MPOL_BIND, new_nodes[0], in setup()
110 free(new_nodes[0]); in cleanup()
111 free(new_nodes[1]); in cleanup()
[all …]
Dmigrate_pages01.c127 unsigned long *old_nodes, *new_nodes; in test_invalid_nodes() local
141 new_nodes = SAFE_MALLOC(NULL, sane_nodemask_size); in test_invalid_nodes()
143 memset(new_nodes, 0, sane_nodemask_size); in test_invalid_nodes()
144 set_bit(new_nodes, invalid_node, 1); in test_invalid_nodes()
147 old_nodes, new_nodes)); in test_invalid_nodes()
151 free(new_nodes); in test_invalid_nodes()
Dmigrate_pages02.c77 unsigned long *old_nodes, *new_nodes; in migrate_to_node() local
85 new_nodes = SAFE_MALLOC(nodemask_size); in migrate_to_node()
88 memset(new_nodes, 0, nodemask_size); in migrate_to_node()
91 set_bit(new_nodes, node, 1); in migrate_to_node()
94 new_nodes)); in migrate_to_node()
106 free(new_nodes); in migrate_to_node()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfold_old_batch_norms.cc109 std::vector<NodeDef>* new_nodes) { in FuseScaleOffsetToConvWeights() argument
148 new_nodes->push_back(scaled_weights_node); in FuseScaleOffsetToConvWeights()
152 new_nodes->push_back(input_node); in FuseScaleOffsetToConvWeights()
153 new_nodes->push_back(conv_node); in FuseScaleOffsetToConvWeights()
160 new_nodes->push_back(bias_offset_node); in FuseScaleOffsetToConvWeights()
171 new_nodes->push_back(bias_add_node); in FuseScaleOffsetToConvWeights()
176 std::vector<NodeDef>* new_nodes) { in FuseBatchNormWithConv() argument
187 batch_norm_node.name(), new_nodes)); in FuseBatchNormWithConv()
192 std::vector<NodeDef>* new_nodes) { in FuseBatchNormWithBatchToSpace() argument
208 scale_values, offset_values, conv_node_match, biasadd_name, new_nodes)); in FuseBatchNormWithBatchToSpace()
[all …]
Dfuse_convolutions.cc47 std::vector<NodeDef>* new_nodes) { in FuseResizePadAndConv() argument
56 new_nodes->push_back(weights_node); in FuseResizePadAndConv()
57 new_nodes->push_back(pad_dims_node); in FuseResizePadAndConv()
73 new_nodes->push_back(fused_conv); in FuseResizePadAndConv()
96 std::vector<NodeDef>* new_nodes) { in FuseResizeAndConv() argument
103 new_nodes->push_back(weights_node); in FuseResizeAndConv()
112 new_nodes->push_back(pad_dims_node); in FuseResizeAndConv()
128 new_nodes->push_back(fused_conv); in FuseResizeAndConv()
156 std::vector<NodeDef>* new_nodes) { in FusePadAndConv() argument
167 new_nodes->push_back(weights_node); in FusePadAndConv()
[all …]
Dquantize_nodes.cc282 std::vector<NodeDef>* new_nodes) { in RemoveRedundantQuantizations() argument
297 CopyOriginalMatch(match, new_nodes); in RemoveRedundantQuantizations()
405 std::vector<NodeDef>* new_nodes) { in ConvertFakeQuantsToRequantize() argument
413 new_nodes->push_back(original_op_node); in ConvertFakeQuantsToRequantize()
414 new_nodes->push_back(fake_quant_min_node); in ConvertFakeQuantsToRequantize()
415 new_nodes->push_back(fake_quant_max_node); in ConvertFakeQuantsToRequantize()
425 new_nodes->push_back(quantize_node); in ConvertFakeQuantsToRequantize()
437 new_nodes->push_back(requantize_node); in ConvertFakeQuantsToRequantize()
448 new_nodes->push_back(dequantize_node); in ConvertFakeQuantsToRequantize()
499 std::vector<NodeDef>* new_nodes) { in MergeAdjacentRequantizes() argument
[all …]
Dbackports.cc36 std::vector<NodeDef>* new_nodes) { in BackportConcatV2Transform() argument
52 new_nodes->push_back(concat_node); in BackportConcatV2Transform()
73 std::vector<NodeDef>* new_nodes) { in BackportTensorArrayV3Transform() argument
101 new_nodes->push_back(tensor_array_v2_node); in BackportTensorArrayV3Transform()
102 new_nodes->push_back(replacement_flow_node); in BackportTensorArrayV3Transform()
119 std::vector<NodeDef>* new_nodes) { in BackportTensorArrayV3Transform() argument
123 new_nodes->push_back(v2_node); in BackportTensorArrayV3Transform()
Dfold_batch_norms.cc50 std::vector<NodeDef>* new_nodes) { in FoldBatchNorms() argument
62 new_nodes->insert(new_nodes->end(), in FoldBatchNorms()
106 new_nodes->push_back(scaled_weights_node); in FoldBatchNorms()
108 new_nodes->push_back(input_node); in FoldBatchNorms()
113 new_nodes->push_back(new_conv_node); in FoldBatchNorms()
Dquantize_weights.cc45 std::vector<NodeDef>* new_nodes) { in QuantizeWeights() argument
65 new_nodes->push_back(old_const_node); in QuantizeWeights()
106 new_nodes->push_back(quantized_const_node); in QuantizeWeights()
115 new_nodes->push_back(min_node); in QuantizeWeights()
124 new_nodes->push_back(max_node); in QuantizeWeights()
134 new_nodes->push_back(dequantize_node); in QuantizeWeights()
Dflatten_atrous.cc52 std::vector<NodeDef>* new_nodes) { in FlattenAtrousConv() argument
126 new_nodes->push_back(input_node); in FlattenAtrousConv()
127 new_nodes->push_back(upsampled_filter_node); in FlattenAtrousConv()
128 new_nodes->push_back(flattened_conv_node); in FlattenAtrousConv()
Dsparsify_gather.cc260 std::vector<NodeDef>* new_nodes) { in SparsifyGatherInternal() argument
437 new_nodes->push_back(match.inputs[1].node); in SparsifyGatherInternal()
438 new_nodes->push_back(indices_node); in SparsifyGatherInternal()
439 new_nodes->push_back(values_node); in SparsifyGatherInternal()
440 new_nodes->push_back(hashtable_node); in SparsifyGatherInternal()
441 new_nodes->push_back(init_table_node); in SparsifyGatherInternal()
442 new_nodes->push_back(lookup_node); in SparsifyGatherInternal()
443 new_nodes->push_back(default_value_node); in SparsifyGatherInternal()
444 new_nodes->push_back(dim_idx_node); in SparsifyGatherInternal()
445 new_nodes->push_back(expand_dims_node); in SparsifyGatherInternal()
Dround_weights.cc42 std::vector<NodeDef>* new_nodes) { in RoundWeights() argument
64 new_nodes->push_back(old_const_node); in RoundWeights()
103 new_nodes->push_back(rounded_const_node); in RoundWeights()
Dremove_nodes.cc72 std::vector<NodeDef>* new_nodes) { in RemoveNodes() argument
78 CopyOriginalMatch(match, new_nodes); in RemoveNodes()
95 new_nodes->push_back(input_node); in RemoveNodes()
Dtransform_utils.cc430 std::vector<NodeDef> new_nodes; in ReplaceMatchingOpTypes() local
432 node_generator(*match, input_nodes, output_nodes, &new_nodes)); in ReplaceMatchingOpTypes()
434 for (const NodeDef& new_node : new_nodes) { in ReplaceMatchingOpTypes()
459 for (const NodeDef& new_node : new_nodes) { in ReplaceMatchingOpTypes()
544 std::vector<NodeDef>* new_nodes) { in CopyOriginalMatch() argument
548 new_nodes->push_back(old_node); in CopyOriginalMatch()
Dtransform_utils_test.cc437 std::vector<NodeDef>* new_nodes) { in TestReplaceMatchingOpTypes() argument
442 new_nodes->push_back(original_copy); in TestReplaceMatchingOpTypes()
448 new_nodes->push_back(identity_node); in TestReplaceMatchingOpTypes()
875 std::vector<NodeDef> new_nodes; in TestCopyOriginalMatch() local
876 CopyOriginalMatch(a_match, &new_nodes); in TestCopyOriginalMatch()
877 EXPECT_EQ(2, new_nodes.size()); in TestCopyOriginalMatch()
878 EXPECT_EQ("a", new_nodes[0].name()); in TestCopyOriginalMatch()
879 EXPECT_EQ("Relu", new_nodes[0].op()); in TestCopyOriginalMatch()
880 EXPECT_EQ("b", new_nodes[1].name()); in TestCopyOriginalMatch()
881 EXPECT_EQ("Const", new_nodes[1].op()); in TestCopyOriginalMatch()
/external/tensorflow/tensorflow/python/autograph/pyct/
Dtemplates.py140 new_nodes = ast_util.copy_clean(repl, preserve_annos=self.preserved_annos)
141 if isinstance(new_nodes, gast.AST):
142 new_nodes = [new_nodes]
144 return new_nodes
201 new_nodes = self._prepare_replacement(node, node.id)
203 if not new_nodes:
204 return new_nodes
208 for n in new_nodes:
212 if len(new_nodes) == 1:
213 new_nodes, = new_nodes
[all …]
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_urllib.py137 new_nodes = []
157 new_nodes.append(new)
159 if new_nodes:
161 for new_node in new_nodes[:-1]:
163 nodes.append(new_nodes[-1])
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_urllib.py138 new_nodes = []
158 new_nodes.append(new)
160 if new_nodes:
162 for new_node in new_nodes[:-1]:
164 nodes.append(new_nodes[-1])
/external/tensorflow/tensorflow/python/autograph/converters/
Dcontrol_flow.py245 new_nodes = templates.replace(
259 origin_info.copy_origin(node, new_nodes[-1])
260 return new_nodes
296 new_nodes = templates.replace(
309 origin_info.copy_origin(node, new_nodes[-1])
310 return new_nodes
381 new_nodes = templates.replace(
397 origin_info.copy_origin(node, new_nodes[-1])
398 return new_nodes
/external/tensorflow/tensorflow/python/keras/
Dmodels.py64 def _insert_ancillary_layers(model, ancillary_layers, metrics_names, new_nodes): argument
74 model._insert_layers(ancillary_layers, relevant_nodes=list(new_nodes))
90 new_nodes = set()
124 new_nodes.add(
130 return new_nodes
212 new_nodes = nest.flatten([
217 _insert_ancillary_layers(model, ancillary_layers, metrics_names, new_nodes)
377 new_nodes = _make_new_nodes(
384 new_nodes)
/external/yapf/yapf/yapflib/
Dpytree_utils.py149 def InsertNodesBefore(new_nodes, target): argument
160 for node in new_nodes:
164 def InsertNodesAfter(new_nodes, target): argument
175 for node in reversed(new_nodes):
/external/pdfium/third_party/libopenjpeg20/
Dtgt.c179 opj_tgt_node_t* new_nodes = (opj_tgt_node_t*) opj_realloc(p_tree->nodes, in opj_tgt_init() local
181 if (! new_nodes) { in opj_tgt_init()
187 p_tree->nodes = new_nodes; in opj_tgt_init()
/external/tensorflow/tensorflow/lite/python/
Dop_hint.py817 new_nodes = []
824 new_nodes.append(_copy.deepcopy(node))
826 children_hints = _find_all_hints_in_nodes(new_nodes)
837 return ordered_children_hints, new_nodes
885 new_nodes) = _find_children_hints_in_while_loop(
887 function_def_nodes.update([x.name for x in new_nodes])
889 out.node.extend(new_nodes)
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dresources.cc455 protobuf::RepeatedPtrField<boosted_trees::Node> new_nodes; in PostPruneTree() local
456 new_nodes.Reserve(old_to_new_ids.size()); in PostPruneTree()
471 *new_nodes.Add() = std::move(node); in PostPruneTree()
476 *tree->mutable_nodes() = std::move(new_nodes); in PostPruneTree()
/external/tensorflow/tensorflow/python/keras/engine/
Dfunctional.py856 new_nodes, new_layers = _map_subgraph_network(self.inputs, [symbolic_loss])
862 new_nodes.extend(add_loss_layer.inbound_nodes)
864 self._insert_layers(new_layers, new_nodes)
867 new_nodes, new_layers = _map_subgraph_network(self.inputs, [value])
871 new_nodes.extend(add_metric_layer.inbound_nodes)
873 self._insert_layers(new_layers, new_nodes)

12