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

Method get_shape_dict

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

Source from the content-addressed store, hash-verified

428 }
429
430 def get_shape_dict(self, batch_size, image_height, image_width):
431 latent_height, latent_width = self.check_dims(batch_size, image_height, image_width)
432 return {
433 'images': (batch_size, 3, image_height, image_width),
434 'latent': (batch_size, 4, latent_height, latent_width)
435 }
436
437 def get_sample_input(self, batch_size, image_height, image_width):
438 self.check_dims(batch_size, image_height, image_width)

Callers

nothing calls this directly

Calls 1

check_dimsMethod · 0.80

Tested by

no test coverage detected