📜  权重约束 keras cnn - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:32.555000             🧑  作者: Mango

代码示例1
1
2
3
4
5
6
# example of max norm on a cnn layer
from keras.layers import Conv2D
from keras.constraints import max_norm
...
model.add(Conv2D(32, (3,3), kernel_constraint=max_norm(3), bias_constraint=max_norm(3)))