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

Function TEST_CASE

tests/validation/UNIT/TensorInfo.cpp:91–104  ·  view source on GitHub ↗

Validates that TensorInfo is clonable */

Source from the content-addressed store, hash-verified

89
90/** Validates that TensorInfo is clonable */
91TEST_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 */
107TEST_CASE(TensorInfoBuild, framework::DatasetMode::ALL)

Callers

nothing calls this directly

Calls 15

scaleMethod · 0.80
offsetMethod · 0.80
TensorShapeClass · 0.50
QuantizationInfoClass · 0.50
cloneMethod · 0.45
total_sizeMethod · 0.45
num_channelsMethod · 0.45
data_typeMethod · 0.45
quantization_infoMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected