Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2020-04-24 00:18:40 +0300
committerKenneth Heafield <github@kheafield.com>2020-04-24 00:18:40 +0300
commit88471a26388f38eb4007cfbd4e52ac1a60c88a79 (patch)
tree41329ca0615ce0bcf3850574609e3d0803958a0c
parent2600d854f9131e0a0f8cd99a4110fdd874e43053 (diff)
Add empty check for Tile
-rw-r--r--types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.h b/types.h
index 0a9c881..9f40fcb 100644
--- a/types.h
+++ b/types.h
@@ -51,6 +51,7 @@ extern const CPUType kCPU;
struct Tile {
Index A_rows, inner, B_cols;
+ constexpr bool empty() const { return !A_rows || !inner || !B_cols; }
};
#ifdef INTGEMM_COMPILER_SUPPORTS_AVX512VNNI