Tensors and shapes before anything else — step 6 of 7
Write shape(t) for a 2-D tensor stored as a list of rows. Return a
tuple (rows, columns) where rows is the number of inner lists and
columns is the length of the first row.
Write shape(t) for a 2-D tensor stored as a list of rows. Return a
tuple (rows, columns) where rows is the number of inner lists and
columns is the length of the first row.