Home
last modified time | relevance | path

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

12

/external/protobuf/src/google/protobuf/
Dreflection_internal.h114 virtual void SwapElements(Field* data, int index1, int index2) const { in SwapElements() function
115 MutableRepeatedField(data)->SwapElements(index1, index2); in SwapElements()
171 virtual void SwapElements(Field* data, int index1, int index2) const { in SwapElements() function
172 MutableRepeatedField(data)->SwapElements(index1, index2); in SwapElements()
233 virtual void SwapElements(Field* data, int index1, int index2) const { in SwapElements() function
234 MutableRepeatedField(data)->SwapElements(index1, index2); in SwapElements()
Dreflection.h132 void SwapElements(int index1, int index2) const { in SwapElements() function
133 accessor_->SwapElements(data_, index1, index2); in SwapElements()
264 void SwapElements(int index1, int index2) const { in SwapElements() function
265 accessor_->SwapElements(data_, index1, index2); in SwapElements()
355 virtual void SwapElements(Field* data, int index1, int index2) const = 0;
Drepeated_field_reflection_unittest.cc377 mrf_int32.SwapElements(0, 9); in TEST()
378 mrf_double.SwapElements(0, 9); in TEST()
379 mrf_string.SwapElements(0, 9); in TEST()
380 mrf_foreign_message.SwapElements(0, 9); in TEST()
497 mutable_enum_ref.SwapElements(0, 9); in TEST()
500 mutable_int32_ref.SwapElements(0, 9); in TEST()
Dextension_set.cc819 void ExtensionSet::SwapElements(int number, int index1, int index2) { in SwapElements() function in google::protobuf::internal::ExtensionSet
828 extension->repeated_int32_value->SwapElements(index1, index2); in SwapElements()
831 extension->repeated_int64_value->SwapElements(index1, index2); in SwapElements()
834 extension->repeated_uint32_value->SwapElements(index1, index2); in SwapElements()
837 extension->repeated_uint64_value->SwapElements(index1, index2); in SwapElements()
840 extension->repeated_float_value->SwapElements(index1, index2); in SwapElements()
843 extension->repeated_double_value->SwapElements(index1, index2); in SwapElements()
846 extension->repeated_bool_value->SwapElements(index1, index2); in SwapElements()
849 extension->repeated_enum_value->SwapElements(index1, index2); in SwapElements()
852 extension->repeated_string_value->SwapElements(index1, index2); in SwapElements()
[all …]
Drepeated_field.h171 void SwapElements(int index1, int index2);
439 void SwapElements(int index1, int index2);
783 void SwapElements(int index1, int index2);
1215 void RepeatedField<Element>::SwapElements(int index1, int index2) {
1556 inline void RepeatedPtrFieldBase::SwapElements(int index1, int index2) {
1992 inline void RepeatedPtrField<Element>::SwapElements(int index1, int index2) {
1993 RepeatedPtrFieldBase::SwapElements(index1, index2);
Drepeated_field_reflection.h93 virtual void SwapElements(Field* data, int index1, int index2) const = 0;
Dgenerated_message_reflection.cc978 void GeneratedMessageReflection::SwapElements( in SwapElements() function in google::protobuf::internal::GeneratedMessageReflection
987 MutableExtensionSet(message)->SwapElements(field->number(), index1, index2); in SwapElements()
993 ->SwapElements(index1, index2); \ in SwapElements()
1011 ->SwapElements(index1, index2); in SwapElements()
1014 ->SwapElements(index1, index2); in SwapElements()
Dmap_test.cc1529 mmf_int32_int32.SwapElements(0, 9); in TEST_F()
1552 mmf_int32_double.SwapElements(0, 9); in TEST_F()
1577 mmf_string_string.SwapElements(0, 9); in TEST_F()
1606 mmf_int32_foreign_message.SwapElements(0, 9); in TEST_F()
2321 TEST(GeneratedMapFieldReflectionTest, SwapElements) { in TEST() argument
Dgenerated_message_reflection.h230 void SwapElements(Message* message, const FieldDescriptor* field,
Dmessage.h479 virtual void SwapElements(Message* message,
Dextension_set.h341 void SwapElements(int number, int index1, int index2);
Dmap_test_util.cc904 reflection->SwapElements(message, field, 0, 1); in SwapMapsViaReflection()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddependency_optimizer.cc46 node->mutable_input()->SwapElements(pos, node->input_size() - 1); in RemoveInput()
244 fanout->mutable_input()->SwapElements(i, fanout->input_size() - 1); in OptimizeNode()
280 node->mutable_input()->SwapElements(pos, node->input_size() - 1); in OptimizeNode()
568 target_node->mutable_input()->SwapElements(input_slot, in TransitiveReduction()
655 node->mutable_input()->SwapElements(pos, node->input_size() - 1); in GroupCrossDeviceControlEdges()
Dmodel_pruner.cc177 new_node->mutable_input()->SwapElements(pos, i); in ForwardInputs()
354 mutable_inputs->SwapElements(i, curr_pos); in RewriteIdentityNAndInputsOutputs()
355 mutable_types->SwapElements(i, curr_pos); in RewriteIdentityNAndInputsOutputs()
362 mutable_inputs->SwapElements(i, curr_pos++); in RewriteIdentityNAndInputsOutputs()
Dloop_optimizer.cc196 node->mutable_input()->SwapElements(i, node->input_size() - 1); in HandleInvariantNode()
539 push_node->mutable_input()->SwapElements(0, 1); in RemoveStackOps()
890 inputs->SwapElements(pos, dead_node->input_size() - 1); in RemoveDeadBranches()
Dconstant_folding.cc129 node->mutable_input()->SwapElements(i, node->input_size() - 1); in MaybeRemoveControlInput()
1651 node->mutable_input()->SwapElements(0, input_to_forward); in ReplaceOperationWithIdentity()
1682 node->mutable_input()->SwapElements(0, input_to_forward); in ReplaceOperationWithSnapshot()
1699 node->mutable_input()->SwapElements(0, 1); in ReplaceDivisionOfOnesByReciprocal()
1710 node->mutable_input()->SwapElements(0, 1); in ReplaceSubtractionFromZeroByNegation()
2322 node->mutable_input()->SwapElements(1, node->input_size() - 1); in SimplifyPack()
Dscoped_allocator_optimizer.cc170 nodes->SwapElements(i, nodes->size() - 1); in RemoveNode()
Dfunction_optimizer.cc1984 node.mutable_input()->SwapElements(idx, node.input_size() - 1); in RestoreGraphInvariants()
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.cc359 node->mutable_input()->SwapElements(pos, last_pos); in AddAndDedupFanouts()
870 node->mutable_input()->SwapElements(last_node_input, num_regular_fanins); in AddFaninInternal()
931 node->mutable_input()->SwapElements(num_regular_fanins, last_node_input); in AddRegularFaninByPort()
938 node->mutable_input()->SwapElements(i, i + 1); in AddRegularFaninByPort()
1075 mutable_inputs->SwapElements(i, curr_pos); in RemoveRegularFaninInternal()
1144 mutable_inputs->SwapElements(i - 1, i); in RemoveRegularFaninByPort()
1148 mutable_inputs->SwapElements(last_regular_fanin_port, last_node_input); in RemoveRegularFaninByPort()
1172 node->mutable_input()->SwapElements(i, node->input_size() - 1); in RemoveControllingFaninInternal()
1411 node->mutable_input()->SwapElements(from_port, to_port); in SwapRegularFaninsByPorts()
1476 node->mutable_input()->SwapElements(pos, i); in UpdateAllRegularFaninsToControlling()
[all …]
Dutils.cc358 graph->mutable_node()->SwapElements(n, r); in PermuteNodesInPlace()
370 node->mutable_input()->SwapElements(pos, node->input_size() - 1); in DedupControlInputs()
389 graph->mutable_node()->SwapElements(index, last); in EraseNodesFromGraphImpl()
/external/libprotobuf-mutator/src/
Dfield_instance.h227 reflection().SwapElements(message_, descriptor(), i, i - 1); in Delete()
322 reflection().SwapElements(message_, descriptor(), i, i - 1); in InsertRepeated()
Dmutator.cc531 reflection->SwapElements(message2, field, j, j + k); in CrossOverImpl()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dsparsify_gather.cc209 n->mutable_input()->SwapElements(i, i + 1); in RemoveInputAtIndex()
217 g->mutable_node()->SwapElements(i, i + 1); in RemoveNodeAtIndex()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dhoist_random_uniform.cc137 signature->mutable_input_arg()->SwapElements(i - 1, i); in InsertSeedArgument()
/external/protobuf/
DCONTRIBUTORS.txt81 * Added Swap(), SwapElements(), and RemoveLast() to Reflection interface.

12