Skip to content

Commit bc40346

Browse files
committed
Remove an incorrect comment
PiperOrigin-RevId: 187530822
1 parent ca0faab commit bc40346

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

dm_control/mujoco/wrapper/util.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,6 @@ def __get__(self, obj, cls):
159159
return obj_dict.setdefault(name, self.fget(obj))
160160

161161

162-
# It's easy to create numpy arrays from a pointer then have these persist after
163-
# the model has been destroyed and its underlying memory freed. To mitigate the
164-
# risk of writing to a pointer after it has been freed, all array attributes are
165-
# read-only by default. In order to write to them you need to explicitly set
166-
# their ".writeable" flag to True (the SetFlags context manager above provides
167-
# a convenient way to do this).
168-
169-
# The proper solution would be to prevent the model from being garbage-collected
170-
# whilst any of the views onto its buffers are still alive.
171-
172-
173162
def _as_array(src, shape):
174163
"""Converts a native `src` array to a managed numpy buffer.
175164

0 commit comments

Comments
 (0)