ray.rllib.core.learner.learner.Learner.rl_module_is_compatible#
- Learner.rl_module_is_compatible(module: RLModule) bool [source]#
Check whether the given
module
is compatible with this Learner.The default implementation checks the Learner-required APIs and whether the given
module
implements all of them (if not, returns False).- Parameters:
module – The RLModule to check.
- Returns:
True if the module is compatible with this Learner.