Commit d662f8fe07ae7ebb8650ddd8a86bbf853afe283f
1 parent
d377e6d6
added Cat warning
Showing
1 changed file
with
2 additions
and
0 deletions
sdk/plugins/regions.cpp
| ... | ... | @@ -86,6 +86,8 @@ class Cat : public UntrainableMetaTransform |
| 86 | 86 | { |
| 87 | 87 | dst.file = src.file; |
| 88 | 88 | |
| 89 | + if (src.size() % partitions != 0) | |
| 90 | + qFatal("Cat %d partitions does not evenly divide %d matrices.", partitions, src.size()); | |
| 89 | 91 | QVector<int> sizes(partitions, 0); |
| 90 | 92 | for (int i=0; i<src.size(); i++) |
| 91 | 93 | sizes[i%partitions] += src[i].total() * src[i].channels(); | ... | ... |