google / qkeras

QKeras: a quantization deep learning library for Tensorflow Keras
Apache License 2.0
533 stars 102 forks source link

Attribute `__name__` missing from QActivation layer #127

Open Brainz22 opened 7 months ago

Brainz22 commented 7 months ago

A function I am using calls layer.activation.__name__. The activation functions have been separated and called via the QActivation layer as shown on the figure. The error is also shown in the figure, where I tried three different activation functions in the QActivation layer. The same error was raised by the three different activation functions shown there. Thus, I am wondering if it is not possible to use the __name__ attribute anymore, and whether there is an alternative to use such an attribute of the activation layer. image