TensorFlow & PyTorch Flashcards

1
Q

What is TensorFlow?

A

TensorFlow is an open-source machine learning framework developed by Google.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is PyTorch?

A

PyTorch is an open-source machine learning library developed by Facebook’s AI Research lab.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False: TensorFlow uses static computation graphs.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False: PyTorch uses dynamic computation graphs.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Fill in the blank: TensorFlow was released in _____ year.

A

2015.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Fill in the blank: PyTorch was first released in _____ year.

A

2016.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the main programming language used for TensorFlow?

A

Python.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the main programming language used for PyTorch?

A

Python.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Multiple Choice: Which of the following is a key feature of TensorFlow? A) Dynamic graph construction B) Static graph execution C) Simplified debugging

A

B) Static graph execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Multiple Choice: Which of the following is a key feature of PyTorch? A) Static typing B) Eager execution C) High-level APIs

A

B) Eager execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Keras in the context of TensorFlow?

A

Keras is a high-level API for building and training deep learning models in TensorFlow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the primary use of TensorFlow?

A

To build and deploy machine learning models.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the primary use of PyTorch?

A

To develop deep learning applications and research.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or False: TensorFlow supports both CPU and GPU computation.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: PyTorch does not support GPU computation.

A

False.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Fill in the blank: TensorFlow allows for _____ deployment of models.

A

production.

17
Q

What is the role of the Tensor object in TensorFlow?

A

It is the fundamental data structure used to represent multi-dimensional arrays.

18
Q

What is the role of the Tensor object in PyTorch?

A

It is the primary data structure for storing data and gradients.

19
Q

Multiple Choice: Which framework is known for its ease of use in research environments? A) TensorFlow B) PyTorch

A

B) PyTorch.

20
Q

What is a key advantage of using PyTorch for beginners?

A

Its dynamic computation graph makes debugging and experimentation easier.

21
Q

What is TensorBoard?

A

TensorBoard is a visualization tool for TensorFlow that helps in monitoring and debugging machine learning models.

22
Q

What is the purpose of the ‘torch.nn’ module in PyTorch?

A

It provides classes and functions to build neural networks.

23
Q

Fill in the blank: The primary function of an optimizer in machine learning is to _____ the model’s parameters.

24
Q

Multiple Choice: Which of the following optimizers is commonly used in both TensorFlow and PyTorch? A) Adam B) SGD C) Both A and B

A

C) Both A and B.

25
Q

What is the purpose of the ‘tf.data’ API in TensorFlow?

A

To build efficient input pipelines for training models.

26
Q

What is a common use case for PyTorch in academia?

A

Research and development of new deep learning algorithms.