How to support a new activation in the Graph API

Hello, I want to build a new model for inference, but the activation after convolution is a new one. I use the Legacy API, but the speed is too slow (slower than Pytorch). So how to use the Graph API to build a model with a new activation?