| 453 | |
| 454 | template <typename U> |
| 455 | void 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 |
no outgoing calls
no test coverage detected