May I know what’s the equivalent of PyTorch’s np.empty()
?
I would like to have an empty array and concatenate arrays in a loop to this original array.
My current usage:
a = np.empty(0) # This creates an empty array
b = np.concatenate((a, [1])) # New array of shape (1,)
c = np.concatenate((b,[1])) # New array of shape (2,) and so on