projections.protostr 8.3 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
  inputs {
    input_layer_name: "img"
W
wangyang59 已提交
159
    input_parameter_name: "___mixed_6__.w1"
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
    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
      }
W
wangyang59 已提交
181
      num_filters: 64
182 183
    }
  }
184 185 186 187 188 189
  inputs {
    input_layer_name: "filter"
  }
  operator_confs {
    type: "conv"
    input_indices: 0
190
    input_indices: 2
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
    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 已提交
207 208
      output_y: 30
      img_size_y: 32
209 210 211 212 213 214 215
    }
    num_filters: 64
  }
}
layers {
  name: "__mixed_7__"
  type: "mixed"
216 217 218 219 220 221 222
  size: 254016
  active_type: ""
  inputs {
    input_layer_name: "img"
  }
  inputs {
    input_layer_name: "img"
W
wangyang59 已提交
223
    input_parameter_name: "___mixed_7__.w1"
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
    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
      }
W
wangyang59 已提交
245
      num_filters: 64
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 276 277 278 279
    }
  }
  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"
280 281 282 283
  size: 100
  active_type: ""
  inputs {
    input_layer_name: "__mixed_4__"
284
    input_parameter_name: "___mixed_8__.w0"
285 286
    proj_conf {
      type: "fc"
287
      name: "___mixed_8__.w0"
288 289 290 291 292 293
      input_size: 300
      output_size: 100
    }
  }
  inputs {
    input_layer_name: "__mixed_5__"
294
    input_parameter_name: "___mixed_8__.w1"
295 296
    proj_conf {
      type: "trans_fc"
297
      name: "___mixed_8__.w1"
298 299 300 301 302 303
      input_size: 100
      output_size: 100
    }
  }
  inputs {
    input_layer_name: "__mixed_6__"
304
    input_parameter_name: "___mixed_8__.w2"
305 306
    proj_conf {
      type: "fc"
307
      name: "___mixed_8__.w2"
308 309 310 311
      input_size: 57600
      output_size: 100
    }
  }
312 313 314 315 316 317 318 319 320 321
  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
    }
  }
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 370 371 372 373
  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 已提交
374 375 376 377 378 379 380 381 382 383
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
}
W
wangyang59 已提交
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
parameters {
  name: "___mixed_6__.w1"
  size: 576
  initial_mean: 0.0
  initial_std: 0.471404520791
  initial_strategy: 0
  initial_smart: false
}
parameters {
  name: "___mixed_7__.w1"
  size: 576
  initial_mean: 0.0
  initial_std: 0.471404520791
  initial_strategy: 0
  initial_smart: false
}
400
parameters {
401
  name: "___mixed_8__.w0"
402 403 404 405 406 407 408 409 410
  size: 30000
  initial_mean: 0.0
  initial_std: 0.057735026919
  dims: 300
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
411
  name: "___mixed_8__.w1"
412 413 414 415 416 417 418 419 420
  size: 10000
  initial_mean: 0.0
  initial_std: 0.1
  dims: 100
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
parameters {
421
  name: "___mixed_8__.w2"
422 423 424 425 426 427 428 429
  size: 5760000
  initial_mean: 0.0
  initial_std: 0.00416666666667
  dims: 57600
  dims: 100
  initial_strategy: 0
  initial_smart: true
}
430 431 432 433 434 435 436 437 438 439
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
}
440 441 442
input_layer_names: "test"
input_layer_names: "img"
input_layer_names: "filter"
443
output_layer_names: "__mixed_8__"
444 445 446 447 448 449 450 451 452 453 454 455 456 457
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__"
458
  layer_names: "__mixed_8__"
459 460 461
  input_layer_names: "test"
  input_layer_names: "img"
  input_layer_names: "filter"
462
  output_layer_names: "__mixed_8__"
463 464 465
  is_recurrent_layer_group: false
}