TensorFlow Interview Questions and Answers
Question: What is a TensorFlow variable and how is it different from a constant?Answer: A TensorFlow variable is a mutable tensor that can be modified during program execution. Unlike constants, their values can be changed using operations like assign.Example: weight = tf.Variable(initial_value=tf.random_normal(shape=(input_size, output_size))) |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: