We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2665211 commit 10b8452Copy full SHA for 10b8452
HRM/hrm.py
@@ -171,7 +171,7 @@ def forward(
171
172
is_last_step = index == (total_low_steps - 1)
173
174
- context = torch.no_grad if one_step_grad and is_last_step else nullcontext
+ context = torch.no_grad if one_step_grad and not is_last_step else nullcontext
175
176
with context():
177
# evaluate all networks depending on their period
pyproject.toml
@@ -1,6 +1,6 @@
1
[project]
2
name = "HRM-pytorch"
3
-version = "0.0.11"
+version = "0.0.12"
4
description = "The proposal from a Singaporean AGI company"
5
authors = [
6
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
0 commit comments