Skip to content

Commit 16da46e

Browse files
committed
polish(pu): polish qmix comments
1 parent 4f08f91 commit 16da46e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ding/model/template/qmix.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ def _get_global_obs_shape_type(self, global_obs_shape: Union[int, List[int]]) ->
167167
Overview:
168168
Determine the type of global observation shape.
169169
Arguments:
170-
- global_obs_shape (Union[:obj:`int`, :obj:`List[int]`]): The global observation state.
170+
- global_obs_shape (:obj:`Union[int, List[int]]`): The global observation state.
171171
Returns:
172-
- (:obj:`str`): 'flat' for 1D observation or 'image' for 3D observation.
172+
- obs_shape_type (:obj:`str`): 'flat' for 1D observation or 'image' for 3D observation.
173173
"""
174174
if isinstance(global_obs_shape, int) or (isinstance(global_obs_shape, list) and len(global_obs_shape) == 1):
175175
return "flat"
@@ -265,7 +265,7 @@ def _process_global_state(self, global_state: torch.Tensor) -> torch.Tensor:
265265
- global_state (:obj:`torch.Tensor`): The global state tensor.
266266
267267
Returns:
268-
- (:obj:`torch.Tensor`): The processed global state embedding.
268+
- global_state_embedding (:obj:`torch.Tensor`): The processed global state embedding.
269269
"""
270270
# If global_state has 5 dimensions, it's likely in the form [batch_size, time_steps, C, H, W]
271271
if global_state.dim() == 5:

0 commit comments

Comments
 (0)