Aufgrund einer Wartung wird GitLab am 26.10. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 26.10. between 8:00 and 9:00 am.

ThreeInputCNN_M14.emadl 777 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
component ThreeInputCNN_M14{
    ports in Z(0:255)^{3, 224, 224} image[3],
         out Q(0:1)^{10} predictions;

    implementation CNN {

        def conv(filter, channels){
            Convolution(kernel=filter, channels=channels) ->
            Relu()
        }

        def inputGroup(index){
            [index] ->
            conv(filter=(3,3), channels=32, ->=3) ->
            Pooling(pool_type="max", kernel=(2,2), stride=(2,2))
        }

        image ->
        inputGroup(index=[0|..|2]) ->
        Concatenate() ->
        conv(filter=(3,3), channels=64) ->
        Pooling(pool_type="max", kernel=(2,2), stride=(2,2)) ->
        FullyConnected(units=32) ->
        Relu() ->
        FullyConnected(units=10) ->
        Softmax() ->
27
        predictions;
28
29
30

    }
}