MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / get_shape_dict

Method get_shape_dict

demo/Diffusion/models.py:366–371  ·  view source on GitHub ↗
(self, batch_size, image_height, image_width)

Source from the content-addressed store, hash-verified

364 }
365
366 def get_shape_dict(self, batch_size, image_height, image_width):
367 latent_height, latent_width = self.check_dims(batch_size, image_height, image_width)
368 return {
369 'latent': (batch_size, 4, latent_height, latent_width),
370 'images': (batch_size, 3, image_height, image_width)
371 }
372
373 def get_sample_input(self, batch_size, image_height, image_width):
374 latent_height, latent_width = self.check_dims(batch_size, image_height, image_width)

Callers 1

loadResourcesMethod · 0.45

Calls 1

check_dimsMethod · 0.80

Tested by

no test coverage detected