Question about libtorch

If one of my input dimensions is not fixed, how can I convert a PyTorch model to a libtorch-compatible .pt model?