Tan_pytorch_segmentation/pytorch_segmentation/PV_Convolution/Depthwise-Separable-Convolu...

9 lines
263 B
Python
Raw Permalink Normal View History

2025-05-19 20:48:24 +08:00
from model.conv.DepthwiseSeparableConvolution import DepthwiseSeparableConvolution
import torch
from torch import nn
from torch.nn import functional as F
input=torch.randn(1,3,224,224)
dsconv=DepthwiseSeparableConvolution(3,64)
out=dsconv(input)
print(out.shape)