May 2020
Intermediate to advanced
404 pages
10h 52m
English
Like TensorFlow, the central data processing unit in TF.js is tensors. Goodfellow et al. (in their book on deep learning) make the following observation:
Simply described, a tensor is a container of one- or multi-dimensional arrays. The following are some examples of tensors that you may already know:
We can create a tensor with respect to a given shape in TF.js as shown:
const shape = [2, 3]; // 2 rows, 3 columnsconst a = tf.tensor([4.0, 2.0, 5.0, 15.0, 19.0, 27.0], shape);
a is a tensor that ...
Read now
Unlock full access