Does pytorch broadcast consume less memory than expand?

后端 未结 0 1146
长情又很酷
长情又很酷 2021-01-26 18:04

Does pytorch operations using broadcast consume less memory than expand? For example, are the following two programs different in memory usage?

import torch
x = t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题