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

Method get_sample_input

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

Source from the content-addressed store, hash-verified

235 }
236
237 def get_sample_input(self, batch_size, image_height, image_width):
238 self.check_dims(batch_size, image_height, image_width)
239 return torch.zeros(batch_size, self.text_maxlen, dtype=torch.int32, device=self.device)
240
241 def optimize(self, onnx_graph):
242 opt = Optimizer(onnx_graph, verbose=self.verbose)

Callers

nothing calls this directly

Calls 1

check_dimsMethod · 0.80

Tested by

no test coverage detected