kevinzakka / recurrent-visual-attention

A PyTorch Implementation of "Recurrent Models of Visual Attention"
MIT License
468 stars 123 forks source link

gradient detach #2

Closed youngfly11 closed 6 years ago

youngfly11 commented 6 years ago

hello, i have read you code several days ago. I have some trouble with you code. i don't understand your policy network about the .detach, i dont konw how to realize this function? Can you provide some idea.