While @nemo's solution works fine, there is a pytorch internal routine, ... that padding your tensor with zeros and then multiplying it with ...
確定! 回上一頁