[NFC] Remove redundant torch.no_grad in models and pipelines (#854)

Signed-off-by: yuanheng <jonathan.zhaoyh@gmail.com>
This commit is contained in:
Yuanheng Zhao authored and GitHub committed 2026-01-27 12:36:54 +00:00
1 parent 16be03b909
commit 2f5e32477c
9 files changed
-14

No files matched your search

@@ -347,7 +347,6 @@ class StableAudioPipeline(nn.Module, SupportAudioOutput):
latents = latents * self.scheduler.init_noise_sigma
return latents
@torch.no_grad()
def forward(
self,
req: OmniDiffusionRequest,