我正在尝试在 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"
}
非常感谢任何帮助。
谢谢!
最佳答案
根据文档中的定义,负斜率是一个参数。参数定义如下。试试这个:
layer {
name: "relu1"
type: "ReLU"
bottom: "conv1"
top: "conv1"
relu_param{
negative_slope: 0.1
}
}
关于machine-learning - Caffe 中的 Leaky_Relu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39284872/