From a memory perspective, some good blog content of tensors in pytorch are as

Guess you like

Origin blog.csdn.net/t20134297/article/details/108941591