"docs/source/en/training/text2image.md" did not exist on "856dad57bb7a9ee13af4a08492e524b0a145a2c5"
Commit 87d41af6 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Add check for the NUM_ELEMS_IN_BUNDLE

parent e9316485
......@@ -10,7 +10,7 @@
bool run_permute(const ExecutionConfig& config, const Problem& problem)
{
#if 1 < NUM_ELEMS_IN_BUNDLE
static_assert(std::is_same_v<ADataType, BDataType>);
static_assert(std::is_same_v<ADataType, BDataType> && (sizeof(ADataType) % NUM_ELEMS_IN_BUNDLE == 0));
#endif
using std::begin, std::end;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment