From b3d86d1c240fab73d4dc6f17ddc6499f305a41a9 Mon Sep 17 00:00:00 2001 From: explosion-bot Date: Fri, 24 Jun 2022 08:06:33 +0000 Subject: [PATCH] Auto-format code with black --- thinc/backends/_custom_kernels.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/thinc/backends/_custom_kernels.py b/thinc/backends/_custom_kernels.py index 56a23547f..d2d1ea133 100644 --- a/thinc/backends/_custom_kernels.py +++ b/thinc/backends/_custom_kernels.py @@ -171,9 +171,13 @@ def clipped_linear( def gather_add(table, indices, *, threads_per_block=128, num_blocks=128): if table.ndim != 2: - raise ValueError(f"gather_add expects table with dimensionality 2, was: {table.ndim}") + raise ValueError( + f"gather_add expects table with dimensionality 2, was: {table.ndim}" + ) if indices.ndim != 2: - raise ValueError(f"gather_add expects indices with dimensionality 2, was: {indices.ndim}") + raise ValueError( + f"gather_add expects indices with dimensionality 2, was: {indices.ndim}" + ) _is_float_array(table) indices = indices.astype("int32") _check_indices(indices, table.shape[0])