Solved by Deeply in post #2 
              
              
                The targets for the six dataset seem to be defined as tensor, while the seventh dataset is numpy. The problem was resolved after converting the target of the seventh dataset to the tensor.