-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmario.prototxt
108 lines (108 loc) · 1.53 KB
/
mario.prototxt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
layer {
name: "frames"
type: "MemoryData"
top: "frames"
top: "dummy1"
memory_data_param {
batch_size: 1
channels: 1
height: 1
width: 6
}
}
layer {
name: "MemoryData1"
type: "MemoryData"
top: "MemoryData1"
top: "dummy2"
memory_data_param {
batch_size: 1
channels: 5
height: 1
width: 1
}
}
layer {
name: "target"
type: "Reshape"
bottom: "MemoryData1"
top: "target"
reshape_param {
shape {
dim: 0
dim: -1
}
}
}
layer {
name: "MemoryData2"
type: "MemoryData"
top: "MemoryData2"
top: "dummy3"
memory_data_param {
batch_size: 1
channels: 5
height: 1
width: 1
}
}
layer {
name: "filter"
type: "Reshape"
bottom: "MemoryData2"
top: "filter"
reshape_param {
shape {
dim: 0
dim: -1
}
}
}
layer {
name: "silence_layer"
type: "Silence"
bottom: "dummy1"
bottom: "dummy2"
bottom: "dummy3"
}
layer {
name: "ip1"
type: "InnerProduct"
bottom: "frames"
top: "ip1"
inner_product_param {
num_output: 12
weight_filler {
type: "gaussian"
}
}
}
layer {
name: "q_values"
type: "InnerProduct"
bottom: "ip1"
top: "q_values"
inner_product_param {
num_output: 5
weight_filler {
type: "xavier"
}
}
}
layer {
name: "filtered_q_values"
type: "Eltwise"
bottom: "filter"
bottom: "q_values"
top: "filtered_q_values"
eltwise_param {
operation: PROD
}
}
layer {
name: "loss"
type: "EuclideanLoss"
bottom: "filtered_q_values"
bottom: "target"
top: "loss"
}