MultipleOutputsOld.emadl 662 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
component MultipleOutputs{
    ports in Q(-oo:+oo)^{10,1,1} data,
         out Q(0:1)^{4} pred[2];

    implementation CNN {

        data ->
        FullyConnected(units=128, no_bias=true) ->
        Tanh() ->
        (
            FullyConnected(units=16, no_bias=true) ->
            Tanh() ->
            FullyConnected(units=4, no_bias=true)
        |
            FullyConnected(units=16, no_bias=true) ->
            Tanh() ->
            FullyConnected(units=4, no_bias=true)
        ) ->
        (
            [0] ->
            Softmax() ->
            pred[0]
        |
            [1] ->
            Softmax() ->
            pred[1]
        );
    }
}