(self, size, *args, **kwargs)
| 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): |