Skip to content
Advertisement

Traing a CNN using Prelu activation function

I’m trying to train the model using prelu activation function, but I get the following error

JavaScript

I’m using the below-mentioned code, kindly let me know how do I correct it.

JavaScript

Advertisement

Answer

Your tensor input is wrong. You need to set it up like this way

JavaScript

Full working code

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement