error happens with:
_output = activate(finalconvolution, axis=1)
cause its output is not a keras layer.
suggest to replace with this line:
_output = keras.layers.Softmax(axis = 1)(finalconvolution)
it works!!!
By the way, good job 纵苇! Your pretrained model improves my project performance.
error happens with: _output = activate(finalconvolution, axis=1) cause its output is not a keras layer. suggest to replace with this line: _output = keras.layers.Softmax(axis = 1)(finalconvolution) it works!!!
By the way, good job 纵苇! Your pretrained model improves my project performance.