MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / cpu

Method cpu

lightx2v/utils/ggml_tensor.py:211–213  ·  view source on GitHub ↗
(self, pin_memory: bool = False)

Source from the content-addressed store, hash-verified

209 return self
210
211 def cpu(self, pin_memory: bool = False) -> "GGMLTensor":
212 self.data = self.data.cpu()
213 return self
214
215 def to(self, *args, **kwargs) -> "GGMLTensor":
216 self.data = self.data.to(*args, **kwargs)

Callers 15

_decompose_to_loraFunction · 0.80
mainFunction · 0.80
get_maskMethod · 0.80
post_dark_udpFunction · 0.80
run_depth_midas_smallFunction · 0.80
forwardMethod · 0.80
applyMethod · 0.80
to_cpuMethod · 0.80
to_cpuMethod · 0.80
to_cpuMethod · 0.80
video_workerMethod · 0.80
cache_videoFunction · 0.80

Calls

no outgoing calls

Tested by 3

run_testFunction · 0.64
rel_rmsFunction · 0.64
mainFunction · 0.64