这是一个来自官网的示例:https://github.com/keras-team/keras/blob/master/examples/antirectifier.py 与之前的MINST手写数字识别全连接网络相比,只是本实例使用antirectifier替换ReLU激活函数. '''The example demonstrates how to write custom layers for Keras. # Keras自定义层编写示范 We build a custom activatio