Surekha_Gaikwad:

After training how will I send entire data to forward call in order to get x_comp and x because I have loaded images as tensors using dataloader.
x_comp I will use features in CNN but how will I use x as labels since its multidimensional…


You could just pass another epoch using your DataLoader, and store each feature using the corresponding target given by your DataLoader as well (e.g. use the target to select the corresponding folder to store the current feature tensor).



 Surekha_Gaikwad:

Cant we use the encoder part directly in CNN?


That would be a vanilla CNN, wouldn’t it?