I'm trying to create a 2d list with shape of [n,784] (the same shape as the MNIST image batches) using multiple [1,784] lists.
mylist.append(element)
doesn't give me what I'm looking for, where mylist
is the 2d [n,784] list and element is the [1,784] lists. It would return a list with shape [n,1,784].
I've also tried mylist[index].append(element)
, and I got a [784] 1d list instead.
Any idea how to solve my problem?
Thanks a lot