Is that so? But the following error also occurs.How do I modify it?
微信图片_20200304094127743×171 7.37 KB

    tgt_dataset_root = h5py.File('E:\\ADDA\\pytorch-adda-master-lab\\datasets\\lab\\sandy\\mat\\test_target_domain_sandy.mat','r')
    data = tgt_dataset_root['data'] # use the key for data here
    label = tgt_dataset_root['label'] # use the key for target here

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

    tgt_dataset = TensorDataset(data, label)