diff options
Diffstat (limited to 'ethosu/vela/numeric_util.py')
-rw-r--r-- | ethosu/vela/numeric_util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethosu/vela/numeric_util.py b/ethosu/vela/numeric_util.py index 70209fba..4ebef8e5 100644 --- a/ethosu/vela/numeric_util.py +++ b/ethosu/vela/numeric_util.py @@ -89,3 +89,7 @@ def clamp_sigmoid(x): def full_shape(dim, shape, fill): return ([fill] * (dim - len(shape))) + shape + + +def overlaps(start1, end1, start2, end2): + return start1 < end2 and start2 < end1 |