![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PyTorch
CoolDDe
cool
展开
-
PyTorch之Tensor常用操作
PyTorch之Tensor常用操作 注:主要内容是翻译自PyTorch的官方API文档,再加上一些自己的理解。 Tensor 之 view 方法 view(*shape) → Tensor原创 2020-09-30 17:14:33 · 173 阅读 · 0 评论 -
PyTorch conv2d
CONV2D CLASS torch.nn.Conv2d(in_channels: int, out_channels: int, kernel_size: Union[T, Tuple[T, T]], stride: Union[T, Tuple[T, T]] = 1, padding: Union[T, Tuple[T, T]] = 0, dilation: Union[T, Tuple[T, T]] = 1, groups: int = 1, bias: bool = True, padding_mo原创 2020-09-29 19:57:16 · 168 阅读 · 0 评论 -
Pytorch-conv1d
CLASS torch.nn.Conv1d(in_channels: int, out_channels: int, kernel_size: Union[T, Tuple[T]], stride: Union[T, Tuple[T]] = 1, padding: Union[T, Tuple[T]] = 0, dilation: Union[T, Tuple[T]] = 1, groups: int = 1, bias: bool = True, padding_mode: str = ‘zeros’)原创 2020-09-28 19:57:07 · 529 阅读 · 0 评论