docstr: function: init a hidden tensor for every agent at the begging of every episode
  self.rnn_h: rnn hidden state, shape (n_agents, hidden_size)
docstr_tok: ["function",":","init","a","hidden","tensor","for","every","agent","at","the","begging","of","every","episode","self.rnn_h",":","rnn","hidden","state",",","shape","(","n_agents",",","hidden_size",")"]
code: def init_hidden(self):
      """function: init a hidden tensor for every agent at the begging of every episode
      self.rnn_h: rnn hidden state, shape (n_agents, hidden_size)
      """
      self.rnn_h = self.alg.init_hidden(1)[0]
  
file_path: PARL/benchmark/torch/coma/sc2_agent.py
imports: import numpy
  import parl
  import torch
  from torch.distributions import Categorical
label_desc: Use image node_id 2 for calling the Agents obj's underlying member method code with example usage: obj.init_hidden() without return types