Convert .pb to .uff with C++ API | TensorRT 4RC gather

My tensorflow model contains a gather operation, and tensorrt 4RC documents that gather is supported with only the C++ API, how can I use the C++ API to convert .pb file to .uff file?