It should sum up all the elements from an input vector and just divide each one by that sum. Assume all elements are positive.
Yes, exactly! Thanks for your patience while I get up to speed.
You mean something like this?
NetGraph[ <|"norm" -> AggregationLayer[Total, 1], "divide" -> ThreadingLayer[Divide, -1]|>, {NetPort["Input"] -> "norm", {NetPort["Input"], "norm"} -> "divide"} ]