Table of Contents

Class RetainedData

Namespace
Gym.Utils
Assembly
Gym.dll

The part of an observation or info that DataSharesObjects(RetainedData?, object?) compares across calls: containers by reference, arrays as views that keep their memory alive. Dispose it to release the views, which otherwise hold that memory until they are collected.

public sealed class RetainedData : IDisposable
Inheritance
RetainedData
Implements
Inherited Members
Extension Methods

Properties

Kind

What was retained.

public RetainedKind Kind { get; }

Property Value

RetainedKind

TypeName

The value's Python type name (dict, tuple, numpy.ndarray, ...), which must match the other value's.

public string TypeName { get; }

Property Value

string

Methods

Dispose()

Releases the views, nested ones included; the original data is untouched.

public void Dispose()