We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0290270 commit 7e55632Copy full SHA for 7e55632
torchhd/tensors/basemcr.py
@@ -373,8 +373,8 @@ def _parse_container_for_attr(container, attr):
373
block_sizes = _parse_container_for_attr(args, "block_size")
374
375
if len(block_sizes) != 1:
376
- raise RuntimeError(
377
- f"Call to {func} must contain exactly one block size, got {list(block_sizes)}"
+ raise ValueError(
+ f"Call to {func} must contain exactly one block size, got {block_sizes}"
378
)
379
380
# Call with super to avoid infinite recursion
0 commit comments