MCPcopy
hub / github.com/OpenPPL/ppq / copy

Method copy

ppq/core/data.py:169–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 return f'Tensor({self.name}) meta: dtype({self.dtype}), shape({self.shape})'
168
169 def copy(self):
170 if self.shape is not None:
171 return TensorMeta(dtype=self.dtype, shape=self.shape.copy(), tensor_name=self.name)
172 else: return TensorMeta(dtype=self.dtype, shape=None, tensor_name=self.name)
173
174
175class OperationMeta:

Callers 2

copyMethod · 0.45

Calls 1

TensorMetaClass · 0.85

Tested by

no test coverage detected