torch: minimally pad tensor such that num elements divisible by x

前端 未结 0 600
南旧
南旧 2021-02-05 06:29

Suppose I have a tensor t of arbitrary ndim I want to pad (with zeroes) it such that a) I introduce the fewest possible # elements b) after padding, (t.numel(

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