Skip to content

Commit

Permalink
fix bugs of ''compose'' on batch
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiny committed Apr 18, 2023
1 parent 9515773 commit da235c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manotorch/axislayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def compose(self, angles):
lev2_rots = Ra_par_chd[:, [idx for idx in lev2_idxs]] # (B, 5, 3, 3)
lev3_rots = Ra_par_chd[:, [idx for idx in lev3_idxs]] # (B, 5, 3, 3)

lev1_rot_chains = torch.matmul(Ra_par_chd[:, 0].repeat(1, 5, 1, 1), lev1_rots) # (B, 5, 3, 3)
lev1_rot_chains = torch.matmul(Ra_par_chd[:, 0:1].repeat(1, 5, 1, 1), lev1_rots) # (B, 5, 3, 3)
all_rot_chains.append(lev1_rot_chains)
lev2_rot_chains = torch.matmul(lev1_rot_chains, lev2_rots) # (B, 5, 3, 3)
all_rot_chains.append(lev2_rot_chains)
Expand Down

0 comments on commit da235c9

Please sign in to comment.