Hi Ptrblck
I get my result but i need to concatenated predicted and target for 10-folds I use torch.stack but can not concatenate 3 tensors in a loop. I need concatenate them for each loop vertically to use them.Indeed at the end ROCTotal should be (xx,2), which ROCTotal[:,0] should be all predicted value and ROCTotal[:,1] all targeted value. It works for two tensors but not for concatenating in a loop. the size of Predictedvalue and Target  is (106,1) which 106 can be different for each loop
ROCTotal=tensot.Torch()
for ii in range(1,11,1)
ROCTotalFolds=torch.stack([ROCTotalFolds,torch.from_numpy(AveragePredicted),torch.from_numpy(Target1)], dim=0)
ROCTotalFolds=torch.cat([ROCTotalFolds,torch.from_numpy(AveragePredicted),torch.from_numpy(Target1)], 1)