Tensorflow on Google Cloud Flashcards
What is a Tensor?
Tensor represents a n-dimensional array of data (scalar, vector, matrix, n-dimensional matrix)
Explain Tensorflow layering architecture
It consists of multiple layers, from the lowest level in C++, over Python, Python modules and in the end high level python functions.
How Tensorflow represent numerical operations?
Using a Directed Acyclic Graph (DAG)
What is the difference between tf.constant and tf.Variable
tf.constant - creates a constant tensor that can’t be changed
tf.Variable - creates a tensor that can change its value
What is Keras?
Keras is a high-level API that enables you to work with Tensorflow to load data, train and evaluate models, create layers, etc. It represents an abstraction layer that is much easier to use.
What are some basic methods working with models?
model.compile() - define learning rate, loss function, optimizer…
model.fit() - start the training and provide additional things like number of epohs, train and test dataset
model.evaluate() - get model metrics
What is tf.data API?
It is used to create data pipelines in Tensorflow. You can read data, do some transformations, create features and many more.