mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
tensor format ort bug fix (#1557)
bug fix Co-authored-by: Prathik Rao <prathikrao@microsoft.com> Co-authored-by: anton- <anton@huggingface.co>
This commit is contained in:
@@ -77,7 +77,7 @@ def main(args):
|
||||
),
|
||||
)
|
||||
model = ORTModule(model)
|
||||
noise_scheduler = DDPMScheduler(num_train_timesteps=1000, tensor_format="pt")
|
||||
noise_scheduler = DDPMScheduler(num_train_timesteps=1000)
|
||||
optimizer = torch.optim.AdamW(
|
||||
model.parameters(),
|
||||
lr=args.learning_rate,
|
||||
|
||||
Reference in New Issue
Block a user