Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions acestep/apg_guidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def project(
v1 = torch.nn.functional.normalize(v1, dim=dims)
v0_parallel = (v0 * v1).sum(dim=dims, keepdim=True) * v1
v0_orthogonal = v0 - v0_parallel
return v0_parallel.to(dtype).to(device_type), v0_orthogonal.to(dtype).to(
device_type
return v0_parallel.to(dtype).to(v0.device), v0_orthogonal.to(dtype).to(
v0.device
)


Expand Down