ray.rllib.core.models.catalog.Catalog.latent_dims#

property Catalog.latent_dims#

Returns the latent dimensions of the encoder.

This establishes an agreement between encoder and heads about the latent dimensions. Encoders can be built to output a latent tensor with latent_dims dimensions, and heads can be built with tensors of latent_dims dimensions as inputs. This can be safely ignored if this agreement is not needed in case of modifications to the Catalog.

Returns:

The latent dimensions of the encoder.