If I understand your use case correctly, you would like to use the first input to initialize the internal parameters of your custom activation module?
If so, take a look at .g. LazyLinear, which does the same and try to adapt its usage to your module.