We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e662f5 commit ccdc14fCopy full SHA for ccdc14f
1 file changed
src/torchjd/autojac/_transform/diagonalize.py
@@ -29,9 +29,9 @@ def __call__(self, tensors: Gradients) -> Jacobians:
29
30
def check_keys(self, input_keys: set[Tensor]) -> set[Tensor]:
31
considered = set(self.considered)
32
- if not considered.issubset(input_keys):
+ if not considered == input_keys:
33
raise RequirementError(
34
- f"The input_keys should be a super set of the considered keys. Found input_keys "
35
- f"{input_keys} and considered keys {considered}."
+ f"The input_keys must match the considered keys. Found input_keys {input_keys} and"
+ f"considered keys {considered}."
36
)
37
return considered
0 commit comments