weaker test case and constructor comment
This commit is contained in:
parent
a995cbf9ec
commit
ae0c539bfc
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue