MCPcopy Index your code
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / reset

Method reset

utilities.py:152–162  ·  view source on GitHub ↗
(self, engine_path=None)

Source from the content-addressed store, hash-verified

150 del self.tensors
151
152 def reset(self, engine_path=None):
153 del self.engine
154 del self.context
155 del self.buffers
156 del self.tensors
157 self.engine_path = engine_path
158
159 self.buffers = OrderedDict()
160 self.tensors = OrderedDict()
161 self.inputs = {}
162 self.outputs = {}
163
164 def refit_from_dict(self, refit_weights, is_fp16):
165 # Initialize refitter

Callers 1

switch_engineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected