Skip to content

Commit 097edda

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b6374a8 commit 097edda

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

get_started/rl/fast_td3/fttd3_module.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ def projection(
425425
next_dist = F.softmax(self.forward(obs, actions), dim=1)
426426
proj_dist = torch.zeros_like(next_dist)
427427
offset = (
428-
torch.linspace(0, (batch_size - 1) * self.num_atoms, batch_size, device=device)
428+
torch
429+
.linspace(0, (batch_size - 1) * self.num_atoms, batch_size, device=device)
429430
.unsqueeze(1)
430431
.expand(batch_size, self.num_atoms)
431432
.long()

metasim/utils/kinematics.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def _solve_ik_jax_with_seed(robot, target_link_index, target_wxyz, target_positi
103103
]
104104

105105
sol = (
106-
jaxls.LeastSquaresProblem(factors, [joint_var])
106+
jaxls
107+
.LeastSquaresProblem(factors, [joint_var])
107108
.analyze()
108109
.solve(
109110
initial_vals=jaxls.VarValues.make([joint_var.with_value(prev_cfg)]),
@@ -130,7 +131,8 @@ def _solve_ik_jax_without_seed(robot, target_link_index, target_wxyz, target_pos
130131
]
131132

132133
sol = (
133-
jaxls.LeastSquaresProblem(factors, [joint_var])
134+
jaxls
135+
.LeastSquaresProblem(factors, [joint_var])
134136
.analyze()
135137
.solve(
136138
verbose=False,

0 commit comments

Comments
 (0)