• Latest
  • Trending
PyTorch or TensorFlow? Comparing popular Machine Learning frameworks

PyTorch or TensorFlow? Comparing popular Machine Learning frameworks

March 1, 2022
Inaugural AfCFTA Conference on Women and Youth in Trade

Inaugural AfCFTA Conference on Women and Youth in Trade

September 6, 2022
Instagram fined €405m over children’s data privacy

Instagram fined €405m over children’s data privacy

September 6, 2022
8 Most Common Causes of a Data Breach

5.7bn data entries found exposed on Chinese VPN

August 18, 2022
Fibre optic interconnection linking Cameroon and Congo now operational

Fibre optic interconnection linking Cameroon and Congo now operational

July 15, 2022
Ericsson and MTN Rwandacell Discuss their Long-Term Partnership

Ericsson and MTN Rwandacell Discuss their Long-Term Partnership

July 15, 2022
Airtel Africa Purchases $42M Worth of Additional Spectrum

Airtel Africa Purchases $42M Worth of Additional Spectrum

July 15, 2022
Huawei steps up drive for Kenyan talent

Huawei steps up drive for Kenyan talent

July 15, 2022
TSMC predicts Q3 revenue boost thanks to increased iPhone 13 demand

TSMC predicts Q3 revenue boost thanks to increased iPhone 13 demand

July 15, 2022
Facebook to allow up to five profiles tied to one account

Facebook to allow up to five profiles tied to one account

July 15, 2022
Top 10 apps built and managed in Ghana

Top 10 apps built and managed in Ghana

July 15, 2022
MTN Group to Host the 2nd Edition of the MoMo API Hackathon

MTN Group to Host the 2nd Edition of the MoMo API Hackathon

July 15, 2022
KIOXIA Introduce JEDEC XFM Removable Storage with PCIe/NVMe Spec

KIOXIA Introduce JEDEC XFM Removable Storage with PCIe/NVMe Spec

July 15, 2022
  • Consumer Watch
  • Kids Page
  • Directory
  • Events
  • Reviews
Sunday, 5 February, 2023
  • Login
itechnewsonline.com
  • Home
  • Tech
  • Africa Tech
  • InfoSEC
  • Data Science
  • Data Storage
  • Business
  • Opinion
Subscription
Advertise
No Result
View All Result
itechnewsonline.com
No Result
View All Result

PyTorch or TensorFlow? Comparing popular Machine Learning frameworks

by ITECHNEWS
March 1, 2022
in Data Science, Leading Stories
0 0
0
PyTorch or TensorFlow? Comparing popular Machine Learning frameworks

You may wonder, with TensorFlow remaining a prominent framework in the deep learning industry, why we bothered to write a PyTorch book of the Python Machine Learning series, Machine Learning with PyTorch and Scikit-Learn. As a matter of fact, PyTorch has become the most widely-used deep learning framework in the academic and research community. To examine this further, let me provide an up-to-date and more comprehensive comparison between PyTorch and TensorFlow.

 

YOU MAY ALSO LIKE

Inaugural AfCFTA Conference on Women and Youth in Trade

Instagram fined €405m over children’s data privacy

Dynamic Computational Graphs

Supporting dynamic computational graphs is an advantage of PyTorch over TensorFlow. The computational graphs in PyTorch are built on-demand compared to their static TensorFlow counterparts. This makes PyTorch more debug-friendly: you can execute the code line by line while having full access to all variables. TensorFlow 2.0 applies eager execution that also evaluates operations immediately, similar to PyTorch; however, it comes at the cost of reduced efficiency and speed.

 

State-of-the-Art Model Availability 

Researchers, computational resources restricted startups, and individual practitioners often utilize pre-trained State-of-the-Art (SOTA) models for transfer learning and fine-tuning. As of early 2022, most SOTA models are in PyTorch, for example:

  • In the largest hub of ready-to-use ML models, HuggingFace (https://huggingface.co/models), there are 21,000 models in PyTorch and only 2,000 in TensorFlow.
  • According to http://horace.io/pytorch-vs-tensorflow/, PyTorch papers take up more than 75% of the total publications from the nine top ML journals and conferences.
  • The trend in Papers With Code (https://paperswithcode.com/trends) shows that close to 60% of implementations are in PyTorch, while only 11% are in TensorFlow.

Clearly, PyTorch is the winner from the perspective of model availability.

Production Deployment

While PyTorch dominates in the research domain, TensorFlow is more mature in terms of production deployment due to its robust deployment framework. You can painlessly deploy models on servers using TensorFlow Serving and use TensorFlow Extended (TFX) to create and manage end-to-end pipelines. Moreover, TensorFlow Lite (TFLite) optimizes models to serve on mobile and IoT devices.

Deploying PyTorch models used to rely on third-party APIs. PyTorch has closed the gap in production deployment in recent years. Native deployment tools TorchServe and PyTorch Live were released around 2020. TorchServe is a great tool for deploying trained PyTorch models without having to write custom code. It provides an easy-to-use command-line interface and supports lightweight serving at scale on many environments, including Amazon SageMaker, EKS, and Kubernetes. PyTorch Live targets mobile devices, similar to TFLite.

Final Words: Which Should I Choose?

There is no definite answer to this. However, for ML or DL beginners, PyTorch has an easier learning curve as it is more Pythonic and debug-friendly and more straightforward when it comes to handling data. On the other hand, TensorFlow could indicate a steeper learning curve because of the low-level implementations of the neural network structure. Although TensorFlow has the high-level Keras API, which makes it easy to get started learning the basic concepts, PyTorch has a good trade-off between being easy to use and being more easily customizable than Keras.

Given their reputation in the academy and industry, if you are more into research, PyTorch could be your first choice unless you are working on reinforcement learning. In this case, TensorFlow has a phenomenal module (https://www.tensorflow.org/agents/overview) designed for such projects.

Source: KDnuggets
Tags: PyTorch or TensorFlow
ShareTweetShare
Plugin Install : Subscribe Push Notification need OneSignal plugin to be installed.

Search

No Result
View All Result

Recent News

Inaugural AfCFTA Conference on Women and Youth in Trade

Inaugural AfCFTA Conference on Women and Youth in Trade

September 6, 2022
Instagram fined €405m over children’s data privacy

Instagram fined €405m over children’s data privacy

September 6, 2022
8 Most Common Causes of a Data Breach

5.7bn data entries found exposed on Chinese VPN

August 18, 2022

About What We Do

itechnewsonline.com

We bring you the best Premium Tech News.

Recent News With Image

Inaugural AfCFTA Conference on Women and Youth in Trade

Inaugural AfCFTA Conference on Women and Youth in Trade

September 6, 2022
Instagram fined €405m over children’s data privacy

Instagram fined €405m over children’s data privacy

September 6, 2022

Recent News

  • Inaugural AfCFTA Conference on Women and Youth in Trade September 6, 2022
  • Instagram fined €405m over children’s data privacy September 6, 2022
  • 5.7bn data entries found exposed on Chinese VPN August 18, 2022
  • Fibre optic interconnection linking Cameroon and Congo now operational July 15, 2022
  • Home
  • InfoSec
  • Opinion
  • Africa Tech
  • Data Storage

© 2021-2022 iTechNewsOnline.Com - Powered by BackUPDataSystems

No Result
View All Result
  • Home
  • Tech
  • Africa Tech
  • InfoSEC
  • Data Science
  • Data Storage
  • Business
  • Opinion

© 2021-2022 iTechNewsOnline.Com - Powered by BackUPDataSystems

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Go to mobile version