Machine Learning Fundamentals · 免费预览
张量与形状
模型的数据存放在数组中,数组各轴的长度称为形状,而形状的运算规则决定某项计算是否有定义。
1. Arrays with an arbitrary number of axes
Arrays with an arbitrary number of axes
2. Elementwise operations
Elementwise operations
3. Combining tensors across axes
Combining tensors across axes
4. What the shape tuple means
A dataset holds 200 photographs, each stored as three color channels of 32 rows and 32 columns. The batch tensor passed to a model has shape . How many numbers does the tensor hold, and which axis length corresponds to the batch?
5. Summing away an axis
A tensor of shape is summed over axis . The result is a vector of shape ____.