Solved by yf225 in post #5 
              
              
                @erict Thanks for the explanation - If your goal is to find an equivalent of torch.nn.PReLU layer in C++ API, you can use torch::nn::PReLU layer which behaves exactly like the Python version, and we can construct it like auto m = torch::nn::PReLU(torch::nn::PReLUOptions().num_parameters(42).init(0.2…