TensorRT: .wts format for tensorflow model weights in sampleCharRNN

Could anybody help me in understanding how to convert tensorflow model weights into .wts extension format as given in the sampleCharRNN example?

Thanks!