The length of the data is 200, and the length of the label is 1. These two should correspond to each other! Why is this the case now? Please inform, thank you!

微信图片_20200313101822798×391 12.1 KB

import h5py
import torch
from torch.utils.data import TensorDataset

tgt_dataset_root = h5py.File('E:\\ADDA\\pytorch-adda-master-lab\\datasets\\lab\\test_target_domain_sandy.mat','r')
data = tgt_dataset_root['data'][:]
label = tgt_dataset_root['label'][:]

data = torch.from_numpy(data)
label = torch.from_numpy(label)

print(tgt_dataset_root.keys())

print(data)
print(label)

print(len(data))
print(len(label))