mirror of
https://github.com/wassname/ray.git
synced 2026-07-17 11:32:33 +08:00
[rllib] ModelV2 support for pytorch (#5249)
This commit is contained in:
@@ -14,10 +14,12 @@ from ray.rllib.utils import try_import_tf
|
||||
tf = try_import_tf()
|
||||
|
||||
|
||||
@PublicAPI
|
||||
# Deprecated: use TFModelV2 instead
|
||||
class Model(object):
|
||||
"""Defines an abstract network model for use with RLlib.
|
||||
|
||||
This class is deprecated: please use TFModelV2 instead.
|
||||
|
||||
Models convert input tensors to a number of output features. These features
|
||||
can then be interpreted by ActionDistribution classes to determine
|
||||
e.g. agent action values.
|
||||
|
||||
Reference in New Issue
Block a user