* add implementation of twirls * format the code * fix some format error, and ignore others * fix format errors * fix format errors * expose unfolding & attention * Update nn.pytorch.rst Co-authored-by: Quan (Andy) Gan <coin2028@hotmail.com>