Skip to content

Commit

Permalink
all the fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
manila95 committed Sep 21, 2023
1 parent 167ca8e commit 96e0238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanrl/ppo_continuous_action_wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def train_risk(cfg, model, data, criterion, opt, device):
dataloader = DataLoader(dataset, batch_size=cfg.risk_batch_size, shuffle=True, num_workers=10, generator=torch.Generator(device='cpu'))
net_loss = 0
for batch in dataloader:
pred = model(batch[0].to(device))
pred = model(get_risk_obs(cfg, batch[0]).to(device))
if cfg.model_type == "mlp":
loss = criterion(pred, batch[1].squeeze().to(device))
else:
Expand Down

0 comments on commit 96e0238

Please sign in to comment.