Skip to content

Commit 10b8452

Browse files
committed
oops
1 parent 2665211 commit 10b8452

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HRM/hrm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def forward(
171171

172172
is_last_step = index == (total_low_steps - 1)
173173

174-
context = torch.no_grad if one_step_grad and is_last_step else nullcontext
174+
context = torch.no_grad if one_step_grad and not is_last_step else nullcontext
175175

176176
with context():
177177
# evaluate all networks depending on their period

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "HRM-pytorch"
3-
version = "0.0.11"
3+
version = "0.0.12"
44
description = "The proposal from a Singaporean AGI company"
55
authors = [
66
{ name = "Phil Wang", email = "lucidrains@gmail.com" }

0 commit comments

Comments
 (0)