def __init__(self, input_shape, args):
    super(RNNAgent, self).__init__()
    self.args = args
    self.fc1 = nn.Linear(input_shape, args.rnn_hidden_dim)
    self.rnn = nn.GRUCell(args.rnn_hidden_dim, args.rnn_hidden_dim)
    if (not args.levin_flag_quantile):
        self.fc2 = nn.Linear(args.rnn_hidden_dim, args.n_actions)
    else:
        self.fc2 = nn.Linear(args.rnn_hidden_dim, (args.n_actions * args.N_QUANT))
def __init__(self, input_shape, args):
    super(RNNAgent, self).__init__()
    self.args = args
    self.fc1 = nn.Linear(input_shape, args.rnn_hidden_dim)
    self.rnn = nn.GRUCell(args.rnn_hidden_dim, args.rnn_hidden_dim)
    if (not args.levin_flag_quantile):
        self.fc2 = nn.Linear(args.rnn_hidden_dim, args.n_actions)
    else:
        self.fc2 = nn.Linear(args.rnn_hidden_dim, (args.n_actions * args.N_QUANT))