MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / set_immutable

Method set_immutable

CV/SemSegPaddle/src/utils/collect.py:142–146  ·  view source on GitHub ↗
(self, immutable)

Source from the content-addressed store, hash-verified

140 self.update_from_segconfig(dic)
141
142 def set_immutable(self, immutable):
143 self.immutable = immutable
144 for value in self.values():
145 if isinstance(value, SegConfig):
146 value.set_immutable(immutable)
147
148 def is_immutable(self):
149 return self.immutable

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected