mirror of
https://github.com/wassname/ray.git
synced 2026-07-28 11:25:04 +08:00
[RLlib] Unity3D integration (n Unity3D clients vs learning server). (#8590)
This commit is contained in:
@@ -2,10 +2,10 @@ import collections
|
||||
import logging
|
||||
import numpy as np
|
||||
|
||||
from ray.util.debug import log_once
|
||||
from ray.rllib.policy.sample_batch import SampleBatch, MultiAgentBatch
|
||||
from ray.rllib.utils.annotations import PublicAPI, DeveloperAPI
|
||||
from ray.rllib.utils.debug import summarize
|
||||
from ray.util.debug import log_once
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -124,8 +124,9 @@ class MultiAgentSampleBatchBuilder:
|
||||
This pushes the postprocessed per-agent batches onto the per-policy
|
||||
builders, clearing per-agent state.
|
||||
|
||||
Arguments:
|
||||
episode: current MultiAgentEpisode object or None
|
||||
Args:
|
||||
episode (Optional[MultiAgentEpisode]): Current MultiAgentEpisode
|
||||
object.
|
||||
"""
|
||||
|
||||
# Materialize the batches so far
|
||||
@@ -198,8 +199,9 @@ class MultiAgentSampleBatchBuilder:
|
||||
Any unprocessed rows will be first postprocessed with a policy
|
||||
postprocessor. The internal state of this builder will be reset.
|
||||
|
||||
Arguments:
|
||||
episode: current MultiAgentEpisode object or None
|
||||
Args:
|
||||
episode (Optional[MultiAgentEpisode]): Current MultiAgentEpisode
|
||||
object.
|
||||
"""
|
||||
|
||||
self.postprocess_batch_so_far(episode)
|
||||
|
||||
Reference in New Issue
Block a user