4.6.1. Layer Base Class

class rlgraph.components.layers.layer.Layer(**kwargs)[source]

Bases: rlgraph.components.component.Component

A Layer is a simple Component that implements the apply method with n inputs and m return values.

API:
apply(*inputs): Applies the layer’s logic to the inputs and returns one or more result values.
get_preprocessed_space(space)[source]

Returns the Space obtained after pushing the space input through this layer.

Args:
space (Space): The incoming Space object.
Returns:
Space: The Space after preprocessing.