Commit f3b3a61c authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Add check for the input tensor type's byte-size

parent b80b34f5
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
bool run_permute(const ExecutionConfig& config, const Problem& problem) bool run_permute(const ExecutionConfig& config, const Problem& problem)
{ {
#if 1 < NUM_ELEMS_IN_BUNDLE #if 1 < NUM_ELEMS_IN_BUNDLE
static_assert(std::is_same_v<ADataType, BDataType> && (sizeof(ADataType) % NUM_ELEMS_IN_BUNDLE == 0)); static_assert(std::is_same_v<ADataType, BDataType> &&
(sizeof(ADataType) % NUM_ELEMS_IN_BUNDLE == 0));
#endif #endif
using std::begin, std::end; 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