google / google/qkeras

Attribute `__name__` missing from QActivation layer

Open
#127 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
584
Forks
108
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/google/qkeras/assets/107587607/1fb6c16e-0bfe-4a13-b9bd-b04c2d670708)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported call to layer.activation.__name__ on QActivation with each of the three activations shown in the issue. Inspect how QActivation stores its activation and determine whether the expected outcome is to restore __name__ support or document an alternative. Done means the supported behavior is established and covered by an appropriate regression check or documentation update.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.