weaker test case and constructor comment

This commit is contained in:
alexander-g 2021-01-31 07:21:23 +01:00
parent a995cbf9ec
commit ae0c539bfc
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class Tensor
* Default constructor with data provided which would be used to create the * Default constructor with data provided which would be used to create the
* respective vulkan buffer and memory. * respective vulkan buffer and memory.
* *
* @param data Vector of data that will be used by the tensor * @param data Non-zero-sized vector of data that will be used by the tensor
* @param tensorType Type for the tensor which is of type TensorTypes * @param tensorType Type for the tensor which is of type TensorTypes
*/ */
Tensor(const std::vector<float>& data, Tensor(const std::vector<float>& data,

View file

@ -127,7 +127,7 @@ TEST(TestOpTensorCreate, ExceptionOnZeroSizeTensor)
mgr.evalOpDefault<kp::OpTensorCreate>({ tensorA }); mgr.evalOpDefault<kp::OpTensorCreate>({ tensorA });
} catch( const std::runtime_error& err ) { } catch( const std::runtime_error& err ) {
// check exception // check exception
ASSERT_STREQ("Kompute Tensor attempted to create a zero-sized buffer", err.what() ); ASSERT_TRUE( std::string(err.what()).find("zero-sized") != std::string::npos );
} }
} }