MCPcopy
hub / github.com/city96/ComfyUI-GGUF / new_empty

Method new_empty

ops.py:77–85  ·  view source on GitHub ↗
(self, size, *args, **kwargs)

Source from the content-addressed store, hash-verified

75 logging.warning(f"ignoring 'copy_' on tensor: {e}")
76
77 def new_empty(self, size, *args, **kwargs):
78 # Intel Arc fix, ref#50
79 new_tensor = super().new_empty(size, *args, **kwargs)
80 return GGMLTensor(
81 new_tensor,
82 tensor_type = getattr(self, "tensor_type", None),
83 tensor_shape = size,
84 patches = getattr(self, "patches", []).copy()
85 )
86
87 @property
88 def shape(self):

Callers

nothing calls this directly

Calls 1

GGMLTensorClass · 0.85

Tested by

no test coverage detected