TorcsDQN.emadl 387 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package torcs.agent.dqn;

component TorcsDQN<Z(1:oo) discrete_actions = 2> {
    ports
        in Q^{5} state,
        out Q(-oo:oo)^{discrete_actions} qvalues;

    implementation CNN {
        state ->
        FullyConnected(units=512) ->
        Tanh() ->
        FullyConnected(units=256) ->
        Tanh() ->
        FullyConnected(units=discrete_actions) ->
        qvalues
    }
}