Non-tensor input for torchscript c++ interface

I have a string input in the forward function(for branching to different custom functions), how do i pass this value using the torchscript c++ api? i can only find the tensor input examples.