caffe

Форк
0
/
linreg.prototxt 
60 строк · 1.3 Кб
1
name: 'LinearRegressionExample'
2
# define a simple network for linear regression on dummy data
3
# that computes the loss by a PythonLayer.
4
layer {
5
  type: 'DummyData'
6
  name: 'x'
7
  top: 'x'
8
  dummy_data_param {
9
    shape: { dim: 10 dim: 3 dim: 2 }
10
    data_filler: { type: 'gaussian' }
11
  }
12
}
13
layer {
14
  type: 'DummyData'
15
  name: 'y'
16
  top: 'y'
17
  dummy_data_param {
18
    shape: { dim: 10 dim: 3 dim: 2 }
19
    data_filler: { type: 'gaussian' }
20
  }
21
}
22
# include InnerProduct layers for parameters
23
# so the net will need backward
24
layer {
25
  type: 'InnerProduct'
26
  name: 'ipx'
27
  top: 'ipx'
28
  bottom: 'x'
29
  inner_product_param {
30
    num_output: 10
31
    weight_filler { type: 'xavier' }
32
  }
33
}
34
layer {
35
  type: 'InnerProduct'
36
  name: 'ipy'
37
  top: 'ipy'
38
  bottom: 'y'
39
  inner_product_param {
40
    num_output: 10
41
    weight_filler { type: 'xavier' }
42
  }
43
}
44
layer {
45
  type: 'Python'
46
  name: 'loss'
47
  top: 'loss'
48
  bottom: 'ipx'
49
  bottom: 'ipy'
50
  python_param {
51
    # the module name -- usually the filename -- that needs to be in $PYTHONPATH
52
    module: 'pyloss'
53
    # the layer name -- the class name in the module
54
    layer: 'EuclideanLossLayer'
55
  }
56
  # set loss weight so Caffe knows this is a loss layer.
57
  # since PythonLayer inherits directly from Layer, this isn't automatically
58
  # known to Caffe
59
  loss_weight: 1
60
}
61

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.