Leaky_Relu 在 Caffe 中
Leaky_Relu in Caffe
我正在尝试在 caffe 中使用 Leaky_Relu 层,但无法真正弄清楚在哪里定义它。从层定义 here 中,我可以看到 ReLu 有一个名为 negative_slope 的可选参数,可用于定义 leaky_relu 但我无法弄清楚这个 negative_slope 参数进入.
ReLu 定义如下所示:
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
}
我试过这样做,但它给我带来了一个错误:
layer {
name: "relu1"
type: "ReLU"
negative_slope: 0.1
bottom: "conv1"
top: "conv1"
}
非常感谢任何帮助。
谢谢!
如文档中所定义,negative_slope 是一个参数。参数定义如下。试试这个:
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
relu_param{
negative_slope: 0.1
}
}
我正在尝试在 caffe 中使用 Leaky_Relu 层,但无法真正弄清楚在哪里定义它。从层定义 here 中,我可以看到 ReLu 有一个名为 negative_slope 的可选参数,可用于定义 leaky_relu 但我无法弄清楚这个 negative_slope 参数进入.
ReLu 定义如下所示:
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
}
我试过这样做,但它给我带来了一个错误:
layer {
name: "relu1"
type: "ReLU"
negative_slope: 0.1
bottom: "conv1"
top: "conv1"
}
非常感谢任何帮助。
谢谢!
如文档中所定义,negative_slope 是一个参数。参数定义如下。试试这个:
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
relu_param{
negative_slope: 0.1
}
}