projections.protostr 7.9 KB
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 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 109 110 111 112 113
type: "nn"
layers {
  name: "test"
  type: "data"
  size: 100
  active_type: ""
}
layers {
  name: "__embedding_0__"
  type: "mixed"
  size: 256
  active_type: ""
  inputs {
    input_layer_name: "test"
    input_parameter_name: "___embedding_0__.w0"
    proj_conf {
      type: "table"
      name: "___embedding_0__.w0"
      input_size: 100
      output_size: 256
    }
  }
}
layers {
  name: "__mixed_0__"
  type: "mixed"
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__embedding_0__"
    input_parameter_name: "___mixed_0__.w0"
    proj_conf {
      type: "fc"
      name: "___mixed_0__.w0"
      input_size: 256
      output_size: 100
    }
  }
}
layers {
  name: "__mixed_1__"
  type: "mixed"
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__mixed_0__"
    input_parameter_name: "___mixed_1__.w0"
    proj_conf {
      type: "table"
      name: "___mixed_1__.w0"
      input_size: 100
      output_size: 100
    }
  }
}
layers {
  name: "__mixed_2__"
  type: "mixed"
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__mixed_1__"
    proj_conf {
      type: "identity"
      name: "___mixed_2__.w0"
      input_size: 100
      output_size: 100
    }
  }
}
layers {
  name: "__mixed_3__"
  type: "mixed"
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__mixed_2__"
    input_parameter_name: "___mixed_3__.w0"
    proj_conf {
      type: "dot_mul"
      name: "___mixed_3__.w0"
      input_size: 100
      output_size: 100
    }
  }
}
layers {
  name: "__mixed_4__"
  type: "mixed"
  size: 300
  active_type: ""
  inputs {
    input_layer_name: "__mixed_3__"
    input_parameter_name: "___mixed_4__.w0"
    proj_conf {
      type: "context"
      name: "___mixed_4__.w0"
      input_size: 100
      output_size: 300
      context_start: -1
      context_length: 3
      trainable_padding: true
    }
  }
}
layers {
  name: "__mixed_5__"
  type: "mixed"
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__mixed_2__"
  }
X
xuwei06 已提交
114 115 116 117 118 119 120 121 122 123
  inputs {
    input_layer_name: "__mixed_2__"
    input_parameter_name: "___mixed_5__.w1"
    proj_conf {
      type: "scaling"
      name: "___mixed_5__.w1"
      input_size: 100
      output_size: 100
    }
  }
124 125 126 127 128 129
  inputs {
    input_layer_name: "__mixed_3__"
  }
  operator_confs {
    type: "dot_mul"
    input_indices: 0
X
xuwei06 已提交
130
    input_indices: 2
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
    input_sizes: 100
    input_sizes: 100
    output_size: 100
    dotmul_scale: 1
  }
}
layers {
  name: "img"
  type: "data"
  size: 1024
  active_type: ""
}
layers {
  name: "filter"
  type: "data"
  size: 576
  active_type: ""
}
layers {
  name: "__mixed_6__"
  type: "mixed"
  size: 57600
  active_type: ""
  inputs {
    input_layer_name: "img"
  }
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
  inputs {
    input_layer_name: "img"
    proj_conf {
      type: "conv"
      name: "___mixed_6__.w1"
      input_size: 1024
      output_size: 57600
      conv_conf {
        filter_size: 3
        channels: 1
        stride: 1
        padding: 0
        groups: 1
        filter_channels: 1
        output_x: 30
        img_size: 32
        caffe_mode: true
        filter_size_y: 3
        padding_y: 0
        stride_y: 1
        output_y: 30
        img_size_y: 32
      }
    }
  }
182 183 184 185 186 187
  inputs {
    input_layer_name: "filter"
  }
  operator_confs {
    type: "conv"
    input_indices: 0
188
    input_indices: 2
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
    input_sizes: 1024
    input_sizes: 576
    output_size: 57600
    conv_conf {
      filter_size: 3
      channels: 1
      stride: 1
      padding: 0
      groups: 1
      filter_channels: 1
      output_x: 30
      img_size: 32
      caffe_mode: true
      filter_size_y: 3
      padding_y: 0
      stride_y: 1
L
Luo Tao 已提交
205 206
      output_y: 30
      img_size_y: 32
207 208 209 210 211 212 213
    }
    num_filters: 64
  }
}
layers {
  name: "__mixed_7__"
  type: "mixed"
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
  size: 254016
  active_type: ""
  inputs {
    input_layer_name: "img"
  }
  inputs {
    input_layer_name: "img"
    proj_conf {
      type: "convt"
      name: "___mixed_7__.w1"
      input_size: 1024
      output_size: 254016
      conv_conf {
        filter_size: 3
        channels: 1
        stride: 2
        padding: 1
        groups: 1
        filter_channels: 64
        output_x: 32
        img_size: 63
        caffe_mode: true
        filter_size_y: 3
        padding_y: 1
        stride_y: 2
        output_y: 32
        img_size_y: 63
      }
    }
  }
  inputs {
    input_layer_name: "filter"
  }
  operator_confs {
    type: "convt"
    input_indices: 0
    input_indices: 2
    input_sizes: 1024
    input_sizes: 576
    output_size: 254016
    conv_conf {
      filter_size: 3
      channels: 1
      stride: 2
      padding: 1
      groups: 1
      filter_channels: 64
      output_x: 32
      img_size: 63
      caffe_mode: true
      filter_size_y: 3
      padding_y: 1
      stride_y: 2
      output_y: 32
      img_size_y: 63
    }
    num_filters: 64
  }
}
layers {
  name: "__mixed_8__"
  type: "mixed"
276 277 278 279
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__mixed_4__"
280
    input_parameter_name: "___mixed_8__.w0"
281 282
    proj_conf {
      type: "fc"
283
      name: "___mixed_8__.w0"
284 285 286 287 288 289
      input_size: 300
      output_size: 100
    }
  }
  inputs {
    input_layer_name: "__mixed_5__"
290
    input_parameter_name: "___mixed_8__.w1"
291 292
    proj_conf {
      type: "trans_fc"
293
      name: "___mixed_8__.w1"
294 295 296 297 298 299
      input_size: 100
      output_size: 100
    }
  }
  inputs {
    input_layer_name: "__mixed_6__"
300
    input_parameter_name: "___mixed_8__.w2"
301 302
    proj_conf {
      type: "fc"
303
      name: "___mixed_8__.w2"
304 305 306 307
      input_size: 57600
      output_size: 100
    }
  }
308 309 310 311 312 313 314 315 316 317
  inputs {
    input_layer_name: "__mixed_7__"
    input_parameter_name: "___mixed_8__.w3"
    proj_conf {
      type: "fc"
      name: "___mixed_8__.w3"
      input_size: 254016
      output_size: 100
    }
  }
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
  drop_rate: 0.5
}
parameters {
  name: "___embedding_0__.w0"
  size: 25600
  initial_mean: 0.0
  initial_std: 0.1
  dims: 100
  dims: 256
  initial_strategy: 0
  initial_smart: true
}
parameters {
  name: "___mixed_0__.w0"
  size: 25600
  initial_mean: 0.0
  initial_std: 0.0625
  dims: 256
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
  name: "___mixed_1__.w0"
  size: 10000
  initial_mean: 0.0
  initial_std: 0.1
  dims: 100
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
  name: "___mixed_3__.w0"
  size: 100
  initial_mean: 0.0
  initial_std: 1.0
  dims: 1
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
  name: "___mixed_4__.w0"
  size: 200
  initial_mean: 0.0
  initial_std: 0.0
  dims: 2
  dims: 100
  initial_strategy: 0
  initial_smart: false
}
X
xuwei06 已提交
370 371 372 373 374 375 376 377 378 379
parameters {
  name: "___mixed_5__.w1"
  size: 1
  initial_mean: 0.0
  initial_std: 1.0
  dims: 1
  dims: 1
  initial_strategy: 0
  initial_smart: true
}
380
parameters {
381
  name: "___mixed_8__.w0"
382 383 384 385 386 387 388 389 390
  size: 30000
  initial_mean: 0.0
  initial_std: 0.057735026919
  dims: 300
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
391
  name: "___mixed_8__.w1"
392 393 394 395 396 397 398 399 400
  size: 10000
  initial_mean: 0.0
  initial_std: 0.1
  dims: 100
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
401
  name: "___mixed_8__.w2"
402 403 404 405 406 407 408 409
  size: 5760000
  initial_mean: 0.0
  initial_std: 0.00416666666667
  dims: 57600
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
410 411 412 413 414 415 416 417 418 419
parameters {
  name: "___mixed_8__.w3"
  size: 25401600
  initial_mean: 0.0
  initial_std: 0.00198412698413
  dims: 254016
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
420 421 422
input_layer_names: "test"
input_layer_names: "img"
input_layer_names: "filter"
423
output_layer_names: "__mixed_8__"
424 425 426 427 428 429 430 431 432 433 434 435 436 437
sub_models {
  name: "root"
  layer_names: "test"
  layer_names: "__embedding_0__"
  layer_names: "__mixed_0__"
  layer_names: "__mixed_1__"
  layer_names: "__mixed_2__"
  layer_names: "__mixed_3__"
  layer_names: "__mixed_4__"
  layer_names: "__mixed_5__"
  layer_names: "img"
  layer_names: "filter"
  layer_names: "__mixed_6__"
  layer_names: "__mixed_7__"
438
  layer_names: "__mixed_8__"
439 440 441
  input_layer_names: "test"
  input_layer_names: "img"
  input_layer_names: "filter"
442
  output_layer_names: "__mixed_8__"
443 444 445
  is_recurrent_layer_group: false
}