Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim authored Jul 13, 2023
1 parent 3ae570b commit 720a163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchbenchmark/models/stable_diffusion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Model(HuggingFaceAuthMixin, BenchmarkModel):


def __init__(self, test, device, jit=False, batch_size=None, extra_args=[]):
HuggingFaceAuthMixin.__init__(self)
super().__init__(test=test, device=device, jit=jit,
batch_size=batch_size, extra_args=extra_args)
assert self.dargs.precision == "fp16", f"Stable Diffusion model only supports fp16 precision."
Expand Down

0 comments on commit 720a163

Please sign in to comment.