Unit 1: Building Models with TensorFlow - Subjective Questions

INT422 — Deep Learning • Practice Questions with Detailed Answers

20 questions

1

Define TensorFlow and explain its major features for building machine learning and deep learning models.

2

Describe the steps required to install TensorFlow and verify that the installation is working correctly.

3

What is a tensor? Explain scalar, vector, matrix, and higher-rank tensors with their ranks and examples.

4

Distinguish among the rank, shape, size, and data type of a TensorFlow tensor.

5

Explain TensorFlow computation graphs and discuss the difference between eager execution and graph execution.

6

Describe how tf.function converts TensorFlow code into a computation graph. What is tracing, and why can retracing be undesirable?

7

What are TensorFlow variables? Compare tf.Variable with tf.constant and explain variable assignment operations.

8

Explain automatic differentiation in TensorFlow using tf.GradientTape. Illustrate it by deriving the gradient of .

9

What is an optimizer in TensorFlow? Explain the gradient descent update rule and the roles of learning rate, loss, and gradients.

10

Compare the SGD, Momentum, RMSprop, and Adam optimizers used in TensorFlow.

11

Explain how tensors can be reshaped, transposed, expanded, and squeezed in TensorFlow. State the constraints on these transformations.

12

Describe tensor slicing, indexing, concatenation, and stacking with suitable TensorFlow examples.

13

Explain broadcasting in TensorFlow. Determine the resulting shape when tensors of shapes and are added.

14

Describe matrix multiplication in TensorFlow and distinguish it from element-wise multiplication. Include the shape rule for batched matrix multiplication.

15

What is TensorBoard? Explain how summaries and callbacks are used to visualize model training.

16

Discuss how TensorBoard can be used to diagnose underfitting, overfitting, and optimization problems.

17

Define deep learning and distinguish it from traditional machine learning.

18

Explain the structure and working of a basic feedforward neural network, including weighted sums, activation functions, loss, and backpropagation.

19

Describe a complete TensorFlow workflow for building, training, evaluating, and saving a deep learning model using Keras.

20

Discuss major applications of deep learning and identify suitable neural network architectures for each application area.