阅读背景:

张量张量整形和用0填充

来源:互联网 

Is there a way to reshape a tensor and pad any overflow with zeros? I know ndarray.reshape does this, but as I understand it, converting a Tensor to an ndarray would require flip-flopping between the GPU and CPU. Is there a way to reshape a tensor and pad any




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: