Skip to content

Commit 9f2ebd9

Browse files
committed
oops
1 parent 8cc0677 commit 9f2ebd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

improving_transformers_world_model/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def critic_loss(
503503

504504
# value clipping
505505

506-
clipped_value = old_values + (critic_value - old_values).clamp(1. - eps, 1. + eps)
506+
clipped_value = old_values + (critic_value - old_values).clamp(-eps, eps)
507507

508508
clipped_loss = loss_fn(clipped_value, returns, reduction = 'none')
509509
loss = loss_fn(critic_logits, returns, reduction = 'none')

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "improving-transformers-world-model"
3-
version = "0.0.55"
3+
version = "0.0.56"
44
description = "Improving Transformers World Model for RL"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

0 commit comments

Comments
 (0)