Tensor.expand_as

函数定义

Tensor.expand_as(other) → Tensor

Expand this tensor to the same size as other. self.expand_as(other) is equivalent to self.expand(other.size()).

Please see expand() for more information about expand.

参数

other (torch.Tensor) – The result tensor has the same size as other.

posted on 2021-08-05 21:58  朴素贝叶斯  阅读(151)  评论(0编辑  收藏  举报

导航