MCPcopy Create free account
hub / github.com/apple/ml-pointersect / detach

Method detach

pointersect/inference/structures.py:2195–2200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2193 return self
2194
2195 def detach(self) -> 'RGBDImage':
2196 for attr_name in ['rgb', 'depth', 'normal_w', 'hit_map', 'camera', 'feature']:
2197 arr = getattr(self, attr_name, None)
2198 if arr is not None:
2199 setattr(self, attr_name, arr.detach())
2200 return self
2201
2202 def clone(self) -> 'RGBDImage':
2203 return RGBDImage(

Callers

nothing calls this directly

Calls 1

detachMethod · 0.45

Tested by

no test coverage detected