You may want to take a look at ONNX 4. I found a tutorial for converting a PyTorch model to TensorFlow 3 using ONNX. The other direction should also be possible, though I couldn’t find an example in five minutes of searching.