Creation of inference element using gstreamer(only with CPU)

Hi i want to create a custom element (infer) without the use of gpu … can i take darknetinfer as the base element or dsexample?