Tuesday, April 13, 2021
  • Setup menu at Appearance » Menus and assign menu to Top Bar Navigation
Advertisement
  • AI Development
    • Artificial Intelligence
    • Machine Learning
    • Neural Networks
    • Learn to Code
  • Data
    • Blockchain
    • Big Data
    • Data Science
  • IT Security
    • Internet Privacy
    • Internet Security
  • Marketing
    • Digital Marketing
    • Marketing Technology
  • Technology Companies
  • Crypto News
No Result
View All Result
NikolaNews
  • AI Development
    • Artificial Intelligence
    • Machine Learning
    • Neural Networks
    • Learn to Code
  • Data
    • Blockchain
    • Big Data
    • Data Science
  • IT Security
    • Internet Privacy
    • Internet Security
  • Marketing
    • Digital Marketing
    • Marketing Technology
  • Technology Companies
  • Crypto News
No Result
View All Result
NikolaNews
No Result
View All Result
Home Neural Networks

Getting started hands-on with Tensorflow 2.0 — Part I

December 31, 2019
in Neural Networks
Getting started hands-on with Tensorflow 2.0 — Part I
586
SHARES
3.3k
VIEWS
Share on FacebookShare on Twitter

Initially build inside Google with the name “DistBelief”, Tensorflow has indeed come a long way. It has come up with its new Tensorflow 2.0 and everyone is taking about it. Tensorflow 1.xx was very difficult for newbies to debug and understand with all those tf.session and static computational graphs. Now with Tensorflow 2.0, you can easily debug your code. So, without wasting more time let’s get started.

If you have used Tensorflow 1.xx, you would probably remember the tf.session(), which is used to call its computational graph. In Tensorflow each and every operation are nodes of the graph including the variables too. The graph contains directed edges which defines the direction of flow of information from one node to another node. This is known as Computational Graph.

You might also like

BERT Transformers — How Do They Work? | by James Montantes | Apr, 2021

Learning Not To Fear Machine Learning | by Dimitry Belozersky | Apr, 2021

WOMEN IN A.I. ~ Future is Female

When tf.session() is invoked, the data is fed into the Computational graph and process the data and generate the output.

In Tensorflow 2.0, we say goodbye to tf.session(), and it has come with tf.keras API as a part of it. Moreover, it runs on eager mode by default which enables easy debugging.

You can replicate the Tensorflow 1.xx sessions by using @tf.function decorator which retains all the advantages of Tensorflow graph based execution.

Placeholders, and feed dicts which is used in sessions will function using TF compatiblity mode, but has been replaced by tf.data which creates input pipelines to read training data.

Now let’s get hands on Tensorflow 2.0

We will build a MNIST model using Tensorflow 2.0. The model will have one flatten layer, one dropout layer and two dense layers.

We can observe that this model structure is very similar to the Keras library’s structure, which in fact gives us the intuition that Tensorflow has incorporated Keras, which has become popular due to its ease of usability.

So, this wraps up Part I of the Tensorflow 2.0 series. You can read more on this topic through the links given below. If you like this article, do give a clap. You can always comment in the comment section in case you have any doubts or contact me on Twitter.

Tensorflow 2.0 Official Documentation — Link

Migrate your TensorFlow 1 code to TensorFlow 2 — Link


Credit: BecomingHuman By: Subham Tewari

Previous Post

Huawei warns of 'difficult' year ahead amidst ongoing trade ban

Next Post

Machine learning to grow innovation as smart personal device market peaks

Related Posts

BERT Transformers — How Do They Work? | by James Montantes | Apr, 2021
Neural Networks

BERT Transformers — How Do They Work? | by James Montantes | Apr, 2021

April 13, 2021
Learning Not To Fear Machine Learning | by Dimitry Belozersky | Apr, 2021
Neural Networks

Learning Not To Fear Machine Learning | by Dimitry Belozersky | Apr, 2021

April 13, 2021
WOMEN IN A.I. ~ Future is Female
Neural Networks

WOMEN IN A.I. ~ Future is Female

April 12, 2021
A Primer of 29 Interactions for AI
Neural Networks

A Primer of 29 Interactions for AI

April 10, 2021
Univariate Linear Regression: Explained with Examples | by WeiQin Chuah | Apr, 2021
Neural Networks

Univariate Linear Regression: Explained with Examples | by WeiQin Chuah | Apr, 2021

April 10, 2021
Next Post
Machine learning to grow innovation as smart personal device market peaks

Machine learning to grow innovation as smart personal device market peaks

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended

Plasticity in Deep Learning: Dynamic Adaptations for AI Self-Driving Cars

Plasticity in Deep Learning: Dynamic Adaptations for AI Self-Driving Cars

January 6, 2019
Microsoft, Google Use Artificial Intelligence to Fight Hackers

Microsoft, Google Use Artificial Intelligence to Fight Hackers

January 6, 2019

Categories

  • Artificial Intelligence
  • Big Data
  • Blockchain
  • Crypto News
  • Data Science
  • Digital Marketing
  • Internet Privacy
  • Internet Security
  • Learn to Code
  • Machine Learning
  • Marketing Technology
  • Neural Networks
  • Technology Companies

Don't miss it

Brave browser disables Google’s FLoC tracking system
Internet Security

Brave browser disables Google’s FLoC tracking system

April 13, 2021
New NAME:WRECK Vulnerabilities Impact Nearly 100 Million IoT Devices
Internet Privacy

New NAME:WRECK Vulnerabilities Impact Nearly 100 Million IoT Devices

April 13, 2021
Machine Learning Approach In Fantasy Sports: Cricket
Machine Learning

Machine Learning Approach In Fantasy Sports: Cricket

April 13, 2021
These new vulnerabilities put millions of IoT devices at risk, so patch now
Internet Security

These new vulnerabilities put millions of IoT devices at risk, so patch now

April 13, 2021
BRATA Malware Poses as Android Security Scanners on Google Play Store
Internet Privacy

BRATA Malware Poses as Android Security Scanners on Google Play Store

April 13, 2021
6 Limitations of Desktop System That QuickBooks Hosting Helps Overcome
Data Science

6 Limitations of Desktop System That QuickBooks Hosting Helps Overcome

April 13, 2021
NikolaNews

NikolaNews.com is an online News Portal which aims to share news about blockchain, AI, Big Data, and Data Privacy and more!

What’s New Here?

  • Brave browser disables Google’s FLoC tracking system April 13, 2021
  • New NAME:WRECK Vulnerabilities Impact Nearly 100 Million IoT Devices April 13, 2021
  • Machine Learning Approach In Fantasy Sports: Cricket April 13, 2021
  • These new vulnerabilities put millions of IoT devices at risk, so patch now April 13, 2021

Subscribe to get more!

© 2019 NikolaNews.com - Global Tech Updates

No Result
View All Result
  • AI Development
    • Artificial Intelligence
    • Machine Learning
    • Neural Networks
    • Learn to Code
  • Data
    • Blockchain
    • Big Data
    • Data Science
  • IT Security
    • Internet Privacy
    • Internet Security
  • Marketing
    • Digital Marketing
    • Marketing Technology
  • Technology Companies
  • Crypto News

© 2019 NikolaNews.com - Global Tech Updates