MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / swap

Function swap

tests/SimpleTensor.h:455–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453
454template <typename U>
455void swap(SimpleTensor<U> &tensor1, SimpleTensor<U> &tensor2)
456{
457 // Use unqualified call to swap to enable ADL. But make std::swap available
458 // as backup.
459 using std::swap;
460 swap(tensor1._shape, tensor2._shape);
461 swap(tensor1._format, tensor2._format);
462 swap(tensor1._data_type, tensor2._data_type);
463 swap(tensor1._num_channels, tensor2._num_channels);
464 swap(tensor1._quantization_info, tensor2._quantization_info);
465 swap(tensor1._buffer, tensor2._buffer);
466}
467} // namespace test
468} // namespace arm_compute
469#endif // ACL_TESTS_SIMPLETENSOR_H

Callers 7

CaffePreproccessorMethod · 0.85
SoftNMSFunction · 0.85
SimpleTensor.hFile · 0.85
RawTensor.cppFile · 0.85
compute_targetMethod · 0.85
deep_unique_ptrClass · 0.85
swapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected