i want to help me please @ptrblck
i have error in training
Traceback (most recent call last):
File “D:\deep-ranking\model9\ranktest.py”, line 219, in 
train_imgpath[j:j+10] = (query_name.data).cpu().numpy()
AttributeError: ‘tuple’ object has no attribute ‘data’
code
TESTING PHASE GENERATING TRAIN EMBEDDINGS AND SAVING IN CSV FILE
train_embeddings = np.zeros([100000,4096])
train_labels = np.zeros([100000,1])
train_imgpath = np.zeros([100000,1])
j=0
net.eval()
with torch.no_grad():   #doesn’t calculcate gradient
for data in trainloader:
imgid, query_name, query, inclass, outclass = data
query = F.interpolate(query,scale_factor = 3.5)
query = query.to(device)
query_out = net(query)
train_embeddings[j:j+10] = (query_out.data).cpu().numpy()
train_labels[j:j+10] = (imgid.data).cpu().numpy()
train_imgpath[j:j+10] = (query_name.data).cpu().numpy()
    j+=4
    print(j)
    #print('yallla {}'.format(j))

np.savetxt(‘train_embeddings.csv’,train_embeddings,delimiter = ‘,’)
np.savetxt(‘train_labels.csv’,train_labels,delimiter = ‘,’)
np.savetxt(‘train_imgpath.csv’,train_imgpath,delimiter = ‘,’)