TensorFlow 면접 질문과 답변
Question: What is the purpose of the tf.GradientTape in TensorFlow?Answer: tf.GradientTape is used for automatic differentiation in TensorFlow. It records operations for computing gradients, allowing you to calculate gradients with respect to variables.Example: x = tf.constant(3.0) with tf.GradientTape() as tape: tape.watch(x) y = x * x dy_dx = tape.gradient(y, x) |
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
도움이 되었나요? 예 아니요
Most helpful rated by users: