36bda8432b2ed23f623c8c3031b2cba148bec93b,rllib/policy/policy.py,Policy,__init__,#Policy#Any#Any#Any#,49
Before Change
// Child classes need to add their specific requirements here (usually
// a combination of a Model"s inference_view_- and the
// Policy"s loss function-requirements.
self.training_view_requirements = {}
@abstractmethod
@DeveloperAPI
def compute_actions(
After Change
// Child classes need to add their specific requirements here (usually
// a combination of a Model"s inference_view_- and the
// Policy"s loss function-requirements.
self.view_requirements = {
SampleBatch.OBS: ViewRequirement(),
SampleBatch.ACTIONS: ViewRequirement(space=self.action_space),
SampleBatch.REWARDS: ViewRequirement(),
SampleBatch.DONES: ViewRequirement(),
SampleBatch.EPS_ID: ViewRequirement(),
SampleBatch.AGENT_INDEX: ViewRequirement(),
}
@abstractmethod
@DeveloperAPI
def compute_actions(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: ray-project/ray
Commit Name: 36bda8432b2ed23f623c8c3031b2cba148bec93b
Time: 2020-10-01
Author: sven@anyscale.io
File Name: rllib/policy/policy.py
Class Name: Policy
Method Name: __init__
Project Name: ray-project/ray
Commit Name: e968b52cb7de4e6c2fcc6e7d5ccb98d984745715
Time: 2020-08-21
Author: sven@anyscale.io
File Name: rllib/agents/ppo/ppo_torch_policy.py
Class Name:
Method Name: training_view_requirements_fn
Project Name: ray-project/ray
Commit Name: e968b52cb7de4e6c2fcc6e7d5ccb98d984745715
Time: 2020-08-21
Author: sven@anyscale.io
File Name: rllib/policy/torch_policy.py
Class Name: TorchPolicy
Method Name: __init__