Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 11 April 2019

Performance Analysis of Deep Learning Libraries: TensorFlow and PyTorch

Felipe Florencio1, Thiago Valenç1, Edward David Moreno1 & Methanias Colaço Junior1

Journal of Computer Science, Volume 15, Issue 6, pp. 785–799 · doi.org/10.3844/jcssp.2019.785.799

10,293 accesses5,836 downloads10 citations (Crossref)Metrics
Cite Check for updates

Abstract

Through the increase in deep learning study and use, in the last years there was a development of specific libraries for Deep Neural Network (DNN). Each one of these libraries has different performance results and applies different techniques to optimize the implementation of algorithms. Therefore, even though implementing the same algorithm and using different libraries, the performance of their executions may have a considerable variation. For this reason, developers and scientists that work with deep learning need scientific experimental studies that examine the performance of those libraries. Therefore, this paper has the aim of evaluating and comparing these two libraries: TensorFlow and PyTorch. We have used three parameters: Hardware utilization, hardware temperature and execution time in a context of heterogeneous platforms with CPU and GPU. We used the MNIST database for training and testing the LeNet Convolutional Neural Network (CNN). We performed a scientific experiment following the Goal Question Metrics (GQM) methodology, data were validated through statistical tests. After data analysis, we show that PyTorch library presented a better performance, even though the TensorFlow library presented a greater GPU utilization rate.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 3.0 Licence (CC BY 3.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Florencio, F., Valenç, T., Moreno, E. D. & Junior, M. C. (2019). Performance Analysis of Deep Learning Libraries: TensorFlow and PyTorch. Journal of Computer Science, 15(6), 785–799. https://doi.org/10.3844/jcssp.2019.785.799

Licence
CC BY 3.0
Issue
Volume 15, Issue 6
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Performance Analysis of Deep Learning Libraries: TensorFlow and PyTorchJournal of Computer Science · Volume 15, Issue 6 · pp. 785–799 · CC BY 3.0Download