tensorflow variables, constant, operations

Ke Gui
5 min readJun 6, 2020

TL;DR:

variables: can be changed, like parameters, weight, bias etc.

constant: can not be updated, but can be called multible times with only 1 copy in the memory

tensor: is the input an output of each operations.it flows,:D.

I’m unsure about the practical differences between the 4 variations below (they all evaluate to the same value). My understanding is that if I call tf, it will create an operation on the graph, and otherwise it might. If I don't create the tf.constant() at the…

--

--

Ke Gui

An ordinary guy who wants to be the reason someone believes in the goodness of people. He is living at Brisbane, Australia, with a lovely backyard.