Compute Library
TensorShape.cpp File Reference

Go to the source code of this file.


 Copyright (c) 2017-2022 Arm Limited.


 DATA_TEST_CASE (Construction, framework::DatasetMode::ALL, zip(zip(framework::dataset::make("TensorShape", { TensorShape{}, TensorShape{ 1U }, TensorShape{ 2U }, TensorShape{ 2U, 3U }, TensorShape{ 2U, 3U, 5U }, TensorShape{ 2U, 3U, 5U, 7U }, TensorShape{ 2U, 3U, 5U, 7U, 11U }, TensorShape{ 2U, 3U, 5U, 7U, 11U, 13U }}), framework::dataset::make("NumDimensions", { 0U, 1U, 1U, 2U, 3U, 4U, 5U, 6U })), framework::dataset::make("TotalSize", { 0U, 1U, 2U, 6U, 30U, 210U, 2310U, 30030U })), shape, num_dimensions, total_size)
shape set (dimension, 10)
 ARM_COMPUTE_EXPECT (shape.num_dimensions()==dimension+1, framework::LogLevel::ERRORS)