I want to use tensorRT to parse caffe model, but the tensorRT only support ReLu layer but not PReLu. So how can I do with it ? Can I define it myself ? if there are some demos to reference ?
You can implement it with plugin API.
From TensorRT2.1, we release IPlugin API for the user to implement a non-supported layer.
We have several samples to demonstrate plugin API: