Validates that TensorInfo is clonable */
| 89 | |
| 90 | /** Validates that TensorInfo is clonable */ |
| 91 | TEST_CASE(Clone, framework::DatasetMode::ALL) |
| 92 | { |
| 93 | // Create tensor info |
| 94 | TensorInfo info(TensorShape(23U, 17U, 3U), // tensor shape |
| 95 | 1, // number of channels |
| 96 | DataType::F32); // data type |
| 97 | |
| 98 | // Get clone of current tensor info |
| 99 | std::unique_ptr<ITensorInfo> info_clone = info.clone(); |
| 100 | ARM_COMPUTE_ASSERT(info_clone != nullptr); |
| 101 | ARM_COMPUTE_EXPECT(info_clone->total_size() == info.total_size(), framework::LogLevel::ERRORS); |
| 102 | ARM_COMPUTE_EXPECT(info_clone->num_channels() == info.num_channels(), framework::LogLevel::ERRORS); |
| 103 | ARM_COMPUTE_EXPECT(info_clone->data_type() == info.data_type(), framework::LogLevel::ERRORS); |
| 104 | } |
| 105 | |
| 106 | /** Validates that TensorInfo can chain multiple set commands */ |
| 107 | TEST_CASE(TensorInfoBuild, framework::DatasetMode::ALL) |
nothing calls this directly
no test coverage detected