Skip to content

Commit

Permalink
tensorflow comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhangliu committed Sep 29, 2024
1 parent d08c2f8 commit 41b07a6
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 36 deletions.
18 changes: 9 additions & 9 deletions xuance/tensorflow/policies/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class ActorPolicy(Module):
action_space (Discrete): The discrete action space.
representation (Module): The representation module.
actor_hidden_size (Sequence[int]): A list of hidden layer sizes for actor network.
normalize (Optional[ModuleType]): The layer normalization over a minibatch of inputs.
initialize (Optional[Callable[..., Tensor]]): The parameters initializer.
activation (Optional[ModuleType]): The activation function for each layer.
normalize (Optional[tk.layers.Layer]): The layer normalization over a minibatch of inputs.
initialize (Optional[tk.initializers.Initializer]): The parameters initializer.
activation (Optional[tk.layers.Layer]): The activation function for each layer.
"""

def __init__(self,
Expand Down Expand Up @@ -60,9 +60,9 @@ class ActorCriticPolicy(Module):
representation (Module): The representation module.
actor_hidden_size (Sequence[int]): A list of hidden layer sizes for actor network.
critic_hidden_size (Sequence[int]): A list of hidden layer sizes for critic network.
normalize (Optional[ModuleType]): The layer normalization over a minibatch of inputs.
initialize (Optional[Callable[..., Tensor]]): The parameters initializer.
activation (Optional[ModuleType]): The activation function for each layer.
normalize (Optional[tk.layers.Layer]): The layer normalization over a minibatch of inputs.
initialize (Optional[tk.initializers.Initializer]): The parameters initializer.
activation (Optional[tk.layers.Layer]): The activation function for each layer.
"""

def __init__(self,
Expand Down Expand Up @@ -109,9 +109,9 @@ class PPGActorCritic(Module):
representation (Module): The representation module.
actor_hidden_size (Sequence[int]): A list of hidden layer sizes for actor network.
critic_hidden_size (Sequence[int]): A list of hidden layer sizes for critic network.
normalize (Optional[ModuleType]): The layer normalization over a minibatch of inputs.
initialize (Optional[Callable[..., Tensor]]): The parameters initializer.
activation (Optional[ModuleType]): The activation function for each layer.
normalize (Optional[tk.layers.Layer]): The layer normalization over a minibatch of inputs.
initialize (Optional[tk.initializers.Initializer]): The parameters initializer.
activation (Optional[tk.layers.Layer]): The activation function for each layer.
"""

def __init__(self,
Expand Down
Loading

0 comments on commit 41b07a6

Please sign in to comment.