MCPcopy
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / switch_engine

Method switch_engine

scripts/trt.py:86–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 self.refitted_keys = set(refit_dict.keys())
85
86 def switch_engine(self):
87 self.loaded_config = self.configs[self.profile_idx]
88 self.engine.reset(os.path.join(TRT_MODEL_DIR, self.loaded_config["filepath"]))
89 self.activate()
90
91 def activate(self):
92 self.loaded_config = self.configs[self.profile_idx]

Callers 3

apply_lorasMethod · 0.95
process_batchMethod · 0.80
before_hrMethod · 0.80

Calls 2

activateMethod · 0.95
resetMethod · 0.80

Tested by

no test coverage detected