Skip to content

Commit

Permalink
Make dx, dy, dz consistent (eliminates broadcasting)
Browse files Browse the repository at this point in the history
  • Loading branch information
HastingsGreer authored Apr 14, 2024
1 parent 6c13d48 commit 4beb7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icon_registration/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def compute_gradient_icon_loss(self, phi_AB, phi_BA):
dy = torch.Tensor([[[[[0.0]]], [[[delta]]], [[[0.0]]]]]).to(
self.identity_map.device
)
dz = torch.Tensor([[[[0.0]]], [[[0.0]]], [[[delta]]]]).to(
dz = torch.Tensor([[[[[0.0]]], [[[0.0]]], [[[delta]]]]]).to(
self.identity_map.device
)
direction_vectors = (dx, dy, dz)
Expand Down

0 comments on commit 4beb7e3

Please sign in to comment.