Posted On: Feb 22, 2018
The major differences between Variables and Placeholders are
|1.||Based on Usage||Variables are used to store the present as well as the past state of a graph.||Placeholders are used to feed external data into a graph and the data is assigned to a later date.|
|2.||Based on declaration command||To declare a variable we use the tf.Variable() command.||To declare a placeholder tf.placeholder() command.|
|3.||Based on the requirement of initialization||The variables are needed to be initialized before running the graph.||Initialization is not required in the case of the placeholders.|
Never Miss an Articles from us.
Tensors can be thought of as vectors and matrices of higher dimensions. They represent n-dimensional arrays of base data-type. Each element of a tensor is of the same data-type which is always known. ...