Describe
hi,guys,i want to convert yolov5 pytorch model to TorchScript,then i find source code have if else
in forward function,so i decide to use torch.jit.script rather than torch.jit.trace,bacause i know it is not support control statement for example if else
,and i change many details to fit torchScript,but i failed,so i google how to convert yolov5 to torchScript and find it has a export.py,which can convert to torchScript or onnx,i find it uses torch.jit.trace,why?torchScript support if else?