Skip to content

Commit 0640617

Browse files
Auto-format code with black (#706)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
1 parent f630270 commit 0640617

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

thinc/backends/_custom_kernels.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,13 @@ def clipped_linear(
171171

172172
def gather_add(table, indices, *, threads_per_block=128, num_blocks=128):
173173
if table.ndim != 2:
174-
raise ValueError(f"gather_add expects table with dimensionality 2, was: {table.ndim}")
174+
raise ValueError(
175+
f"gather_add expects table with dimensionality 2, was: {table.ndim}"
176+
)
175177
if indices.ndim != 2:
176-
raise ValueError(f"gather_add expects indices with dimensionality 2, was: {indices.ndim}")
178+
raise ValueError(
179+
f"gather_add expects indices with dimensionality 2, was: {indices.ndim}"
180+
)
177181
_is_float_array(table)
178182
indices = indices.astype("int32")
179183
_check_indices(indices, table.shape[0])

0 commit comments

Comments
 (0)