MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / free

Method free

dm_control/mujoco/wrapper/core.py:330–337  ·  view source on GitHub ↗

Frees the native resources held by this MjModel. This is an advanced feature for use when manual memory management is necessary. This MjModel object MUST NOT be used after this function has been called.

(self)

Source from the content-addressed store, hash-verified

328 return self.__copy__()
329
330 def free(self):
331 """Frees the native resources held by this MjModel.
332
333 This is an advanced feature for use when manual memory management is
334 necessary. This MjModel object MUST NOT be used after this function has
335 been called.
336 """
337 del self._ptr
338
339 def name2id(self, name, object_type):
340 """Returns the integer ID of a specified MuJoCo object.

Callers 2

freeMethod · 0.45
testFreeMjrContextMethod · 0.45

Calls

no outgoing calls

Tested by 1

testFreeMjrContextMethod · 0.36