Google News
logo
TensorFlow.js - Interview Questions
Differentiate between tf.variable and tf.placeholder.
The tf.variable and tf.placeholder both are almost similar to each other, but there are some differences as following:

tf.variable tf.placeholder
  • It defines variable values which are modified with time.
  • It defines specific input data that does not change with time.
  • It requires an initial value at the time of definition.
  • It does not require an initial value at the time of definition.
Advertisement