Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shijianjian committed Mar 25, 2024
1 parent 01338a1 commit 6ab39cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kornia/augmentation/auto/operations/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def get_transformation_matrix(
flags = override_parameters(module.op.flags, extra_args, in_place=False)
mat = module.op.generate_transformation_matrix(input, param.data, flags)
elif module.op._transform_matrix is not None:
mat = as_tensor(module.op._transform_matrix, device=input.device, dtype=input.dtype)
mat = as_tensor(module.transform_matrix, device=input.device, dtype=input.dtype)
else:
raise RuntimeError(f"{module}.op._transform_matrix is None while `recompute=False`.")
raise RuntimeError(f"{module}.transform_matrix is None while `recompute=False`.")

Check warning on line 79 in kornia/augmentation/auto/operations/policy.py

View check run for this annotation

Codecov / codecov/patch

kornia/augmentation/auto/operations/policy.py#L79

Added line #L79 was not covered by tests
res_mat = mat @ res_mat
input = module.op.transform_output_tensor(input, ori_shape)
if module.op.keepdim and ori_shape != input.shape:
Expand Down

0 comments on commit 6ab39cf

Please sign in to comment.