Skip to content

Commit 9ba45e3

Browse files
authored
fix(autojac): Add missing spaces in transform errors (#798)
1 parent 00f257f commit 9ba45e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/torchjd/autojac/_transform/_diagonalize.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __call__(self, tensors: TensorDict, /) -> TensorDict:
7272
def check_keys(self, input_keys: set[Tensor], /) -> set[Tensor]:
7373
if not set(self.key_order) == input_keys:
7474
raise RequirementError(
75-
f"The input_keys must match the key_order. Found input_keys {input_keys} and"
75+
f"The input_keys must match the key_order. Found input_keys {input_keys} and "
7676
f"key_order {self.key_order}.",
7777
)
7878
return input_keys

‎src/torchjd/autojac/_transform/_differentiate.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def check_keys(self, input_keys: set[Tensor], /) -> set[Tensor]:
5959
outputs = set(self.outputs)
6060
if not outputs == input_keys:
6161
raise RequirementError(
62-
f"The input_keys must match the expected outputs. Found input_keys {input_keys} and"
63-
f"outputs {outputs}.",
62+
f"The input_keys must match the expected outputs. Found input_keys {input_keys} "
63+
f"and outputs {outputs}.",
6464
)
6565
return set(self.inputs)
6666

0 commit comments

Comments
 (0)