It is same. I have tried it for a different dataset and random sequence as well it returns requires gradients. But for the dataset, I am applying it to it returns False. The dataset is simple with 1 feature and 16 temporal segments. Shape (batch_size,1,16). And it is binary classification dataset. Is there anything I should change in the dataset which is creating an issue.