MCPcopy
hub / github.com/lllyasviel/Fooocus / to

Method to

ldm_patched/contrib/external_hypernetwork.py:91–94  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

89 return q, k, v
90
91 def to(self, device):
92 for d in self.hypernet.keys():
93 self.hypernet[d] = self.hypernet[d].to(device)
94 return self
95
96 return hypernetwork_patch(out, strength)
97

Callers 15

encode_vae_inpaintFunction · 0.80
get_previewerFunction · 0.80
preview_functionFunction · 0.80
ksamplerFunction · 0.80
patchMethod · 0.80
input_block_patchMethod · 0.80
clip_separate_innerFunction · 0.80
sample_hackedFunction · 0.80

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected