MCPcopy Create free account
hub / github.com/city96/ComfyUI-GGUF / copy_

Method copy_

ops.py:70–75  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

68 return self
69
70 def copy_(self, *args, **kwargs):
71 # fixes .weight.copy_ in comfy/clip_model/CLIPTextModel
72 try:
73 return super().copy_(*args, **kwargs)
74 except Exception as e:
75 logging.warning(f"ignoring 'copy_' on tensor: {e}")
76
77 def new_empty(self, size, *args, **kwargs):
78 # Intel Arc fix, ref#50

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected