You can find the generated docs here https://pytorch.org/cppdocs/api/namespace_torch__jit.html#namespace-torch-jit 14. Unfortunately they are pretty sparse, we have ongoing efforts to improve them.
As for getting the input size a network expects, we don’t have any utilities for that since TorchScript models aren’t specialized to specific shapes.