loooooong commited on
Commit
2c587e6
1 Parent(s): ac9ee43

change shape

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ if device=="cpu":
48
  # pipeline_t2i.safety_checker = pipeline_t2i.safety_checker.to(memory_format=torch.channels_last)
49
 
50
  # Create random input to enable JIT compilation
51
- sample = torch.randn(2,4,64,64).type(torch_dtype)
52
  timestep = torch.rand(1)*999
53
  encoder_hidden_status = torch.randn(2,77,768).type(torch_dtype)
54
  input_example = (sample, timestep, encoder_hidden_status)
 
48
  # pipeline_t2i.safety_checker = pipeline_t2i.safety_checker.to(memory_format=torch.channels_last)
49
 
50
  # Create random input to enable JIT compilation
51
+ sample = torch.randn(2,4,64,48).type(torch_dtype)
52
  timestep = torch.rand(1)*999
53
  encoder_hidden_status = torch.randn(2,77,768).type(torch_dtype)
54
  input_example = (sample, timestep, encoder_hidden_status)