@erict - As explained by @albanD, the torch::nn::functional::prelu function is equivalent to Python torch.nn.functional.prelu function, and they both take two tensors (input and weight).

In the python version i can pass only the weights. How this is function is related to the python version?

Do you mind elaborating how you pass only the weights in the Python version?