Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'stable_diffusion_xl' #1994

Closed
Closed
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 torchbenchmark/canary_models/stable_diffusion_xl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ def __init__(self, test, device, batch_size=None, extra_args=[]):
"time_ids": torch.tensor([1]).to(device) # Replace 'some_value' with the appropriate value or tensor shape for time_ids
}

self.args_tuple = (random_input, timestep, encoder_hidden_states, added_cond_kwargs)
self.args_tuple = (random_input, timestep, encoder_hidden_states, None, None, None, None, added_cond_kwargs)

def enable_fp16_half(self):
pass

def get_module(self):
self.pipe.unet, self.args_tuple
return self.pipe.unet, self.args_tuple

def train(self):
raise NotImplementedError("Train is not implemented for the stable diffusion XL model.")
Expand Down