MCPcopy Create free account
hub / github.com/modelscope/modelscope / reconstruct

Method reconstruct

modelscope/outputs/outputs.py:1662–1666  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1660 self.post_init = True
1661
1662 def reconstruct(self):
1663 # Low performance, but low frequency.
1664 self.clear()
1665 for idx, key in enumerate(self.keys()):
1666 self.append(getattr(self, key))
1667
1668 def __getitem__(self, item):
1669 if isinstance(item, str):

Callers 2

__post_init__Method · 0.95
__setitem__Method · 0.95

Calls 3

keysMethod · 0.95
clearMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected