There is a small Typo in Chapter 3 # 1-D Tensor with boolean data type t_2 = np.array([[True, False, False], [False, False, True], [False, True, False]], dtype=np.bool) This should have said 2-D Tensor and not 1-D.