Firstly I get datas from .txt file and datasets are storing in ‘DATA’ array and then
My manipulations are:
val_range = int(data_x.shape[0]/100) * 15
val_x = data_x[0:val_range, :,:]
train_x = data_x[val_range:None, :,:]

val_y = data_y[0:val_range, :]
train_y = data_y[val_range:None, :]
train_x=torch.Tensor(train_x)
#train_x=train_x.view(-1,1,3)
train_x=train_x.view(77,1,16,16,3)
train_y=torch.Tensor(train_y)
train_y=train_y.view(77,1,16,16)
val_x=torch.Tensor(val_x)
val_y=torch.Tensor(val_y)

If you asked me the original size of data:
train_x=[19172,1,3] and train_y=[19172,1]