This paper presents a comprehensive comparative survey of TensorFlow and PyTorch, the two leading deep learning frameworks, focusing on their usability, performance, and deployment trade-offs. We review each framework's programming paradigm and developer experience, contrasting TensorFlow's graph-based (now optionally eager) approach with PyTorch's dynamic, Pythonic style. We then compare model training speeds and inference performance across multiple tasks and data regimes, drawing on recent benchmarks and studies. Deployment flexibility is examined in depth - from TensorFlow's mature ecosystem (TensorFlow Lite for mobile/embedded, TensorFlow Serving, and JavaScript support) to PyTorch's newer production tools (TorchScript compilation, ONNX export, and TorchServe). We also survey ecosystem and community support, including library integrations, industry adoption, and research trends (e.g., PyTorch's dominance in recent research publications versus TensorFlow's broader tooling in enterprise). Applications in computer vision, natural language processing, and other domains are discussed to illustrate how each framework is used in practice. Finally, we outline future directions and open challenges in deep learning framework design, such as unifying eager and graph execution, improving cross-framework interoperability, and integrating compiler optimizations (XLA, JIT) for improved speed. Our findings indicate that while both frameworks are highly capable for state-of-the-art deep learning, they exhibit distinct trade-offs: PyTorch offers simplicity and flexibility favored in research, whereas TensorFlow provides a fuller production-ready ecosystem - understanding these trade-offs is key for practitioners selecting the appropriate tool. We include charts, code snippets, and more than 20 references to academic papers and official documentation to support this comparative analysis
KHNNs: hypercomplex neural networks computations via Keras using TensorFlow and PyTorch
Faculty of Mathematics and Computer Science, University of Warmia and Mazury in Olsztyn(数学与计算机科学学院,沃姆扎-马祖里大学);Faculty of Computer Science and Telecommunications, Cracow University of Technology(计算机科学与电信学院,克拉科夫技术大学)
Democratizing AI: A Comparative Study in Deep Learning Efficiency and Future Trends in Computational Processing
North South University(南北大学);Pennsylvania State University(宾夕法尼亚州立大学);United International University(联合国际大学);King Fahd University of Petroleum and Minerals (KFUPM)(法赫德国王石油矿产大学)
EagerPy: Writing Code That Works Natively with PyTorch, TensorFlow, JAX, and NumPy
Tübingen AI Center, University of Tübingen(蒂宾根人工智能中心,蒂宾根大学);International Max Planck Research School for Intelligent Systems(国际马克斯·普朗克智能系统研究学院);Bernstein Center for Computational Neuroscience Tübingen(伯恩斯坦计算神经科学中心(蒂宾根))
Artificial and Natural Intelligence Toulouse Institute, Université de Toulouse(图卢兹大学图卢兹人工与自然智能研究所);Institut de Recherche Technologique Saint-Exupery(圣埃克苏佩里技术研究所);Carney Institute for Brain Science, Brown University(布朗大学卡尼脑科学研究所);Innovation & Research Division, SNCF(法国国家铁路公司创新与研究部);Scalian(Scalian公司)
Reproducibility, energy efficiency and performance of pseudorandom number generators in machine learning: a comparative study of python, numpy, tensorflow, and pytorch implementations
TSFEDL: A Python Library for Time Series Spatio-Temporal Feature Extraction and Prediction using Deep Learning (with Appendices on Detailed Network Architectures and Experimental Cases of Study)
Andalusian Institute of Data Science and Computational Intelligence(安达卢西亚数据科学与计算智能研究所);University of Granada(格拉纳达大学);Repsol Technology Lab(雷普索尔技术实验室)
PyTorch: An Imperative Style, High-Performance Deep Learning Library
University of Warsaw(华沙大学);Facebook AI Research(Facebook人工智能研究实验室);Google(谷歌公司);NVIDIA(英伟达公司);Orobix(奥罗比克斯公司);Oxford University(牛津大学);Xamla(Xamla公司);Nabla(纳布拉公司);Twitter(推特公司)
Pytorch-Wildlife: A Collaborative Deep Learning Framework for Conservation
Microsoft AI for Good(微软AI公益部门);Center for Research and Formation in Artificial Intelligence, Universidad de los Andes(安第斯大学人工智能研究与形成中心);Massachusetts Institute of Technology(麻省理工学院)