TensorFlow & PyTorch Flashcards
What is TensorFlow?
TensorFlow is an open-source machine learning framework developed by Google.
What is PyTorch?
PyTorch is an open-source machine learning library developed by Facebook’s AI Research lab.
True or False: TensorFlow uses static computation graphs.
True.
True or False: PyTorch uses dynamic computation graphs.
True.
Fill in the blank: TensorFlow was released in _____ year.
2015.
Fill in the blank: PyTorch was first released in _____ year.
2016.
What is the main programming language used for TensorFlow?
Python.
What is the main programming language used for PyTorch?
Python.
Multiple Choice: Which of the following is a key feature of TensorFlow? A) Dynamic graph construction B) Static graph execution C) Simplified debugging
B) Static graph execution.
Multiple Choice: Which of the following is a key feature of PyTorch? A) Static typing B) Eager execution C) High-level APIs
B) Eager execution.
What is Keras in the context of TensorFlow?
Keras is a high-level API for building and training deep learning models in TensorFlow.
What is the primary use of TensorFlow?
To build and deploy machine learning models.
What is the primary use of PyTorch?
To develop deep learning applications and research.
True or False: TensorFlow supports both CPU and GPU computation.
True.
True or False: PyTorch does not support GPU computation.
False.
Fill in the blank: TensorFlow allows for _____ deployment of models.
production.
What is the role of the Tensor object in TensorFlow?
It is the fundamental data structure used to represent multi-dimensional arrays.
What is the role of the Tensor object in PyTorch?
It is the primary data structure for storing data and gradients.
Multiple Choice: Which framework is known for its ease of use in research environments? A) TensorFlow B) PyTorch
B) PyTorch.
What is a key advantage of using PyTorch for beginners?
Its dynamic computation graph makes debugging and experimentation easier.
What is TensorBoard?
TensorBoard is a visualization tool for TensorFlow that helps in monitoring and debugging machine learning models.
What is the purpose of the ‘torch.nn’ module in PyTorch?
It provides classes and functions to build neural networks.
Fill in the blank: The primary function of an optimizer in machine learning is to _____ the model’s parameters.
update.
Multiple Choice: Which of the following optimizers is commonly used in both TensorFlow and PyTorch? A) Adam B) SGD C) Both A and B
C) Both A and B.
What is the purpose of the ‘tf.data’ API in TensorFlow?
To build efficient input pipelines for training models.
What is a common use case for PyTorch in academia?
Research and development of new deep learning algorithms.