/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages03.c | 43 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 …]
|
D | migrate_pages01.c | 127 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()
|
D | migrate_pages02.c | 77 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/ |
D | fold_old_batch_norms.cc | 109 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 …]
|
D | fuse_convolutions.cc | 47 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 …]
|
D | quantize_nodes.cc | 282 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 …]
|
D | backports.cc | 36 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()
|
D | fold_batch_norms.cc | 50 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()
|
D | quantize_weights.cc | 45 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()
|
D | flatten_atrous.cc | 52 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()
|
D | sparsify_gather.cc | 260 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()
|
D | round_weights.cc | 42 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()
|
D | remove_nodes.cc | 72 std::vector<NodeDef>* new_nodes) { in RemoveNodes() argument 78 CopyOriginalMatch(match, new_nodes); in RemoveNodes() 95 new_nodes->push_back(input_node); in RemoveNodes()
|
D | transform_utils.cc | 430 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()
|
D | transform_utils_test.cc | 437 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/ |
D | templates.py | 140 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/ |
D | fix_urllib.py | 137 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/ |
D | fix_urllib.py | 138 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/ |
D | control_flow.py | 245 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/ |
D | models.py | 64 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/ |
D | pytree_utils.py | 149 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/ |
D | tgt.c | 179 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/ |
D | op_hint.py | 817 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/ |
D | resources.cc | 455 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/ |
D | functional.py | 856 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)
|