WeichenFan commited on
Commit
a4f2074
·
1 Parent(s): 8d862e5

Add application file

Browse files
Files changed (1) hide show
  1. sd3_pipeline.py +1 -0
sd3_pipeline.py CHANGED
@@ -69,6 +69,7 @@ EXAMPLE_DOC_STRING = """
69
  ```
70
  """
71
 
 
72
  def optimized_scale(positive_flat, negative_flat):
73
 
74
  # Calculate dot production
 
69
  ```
70
  """
71
 
72
+ @torch.cuda.amp.autocast(dtype=torch.float32)
73
  def optimized_scale(positive_flat, negative_flat):
74
 
75
  # Calculate dot production