请改进下面这段代码的卷积方式为深度可分离卷积# ------------------------------------------------------------------------------# Copyright c Microsoft# Licensed under the MIT License# Create by Bin Xiao BinXiaomicrosoftcom# M
下面是改进后的代码,主要是将普通卷积改为深度可分离卷积:
from future import absolute_import from future import division from future import print_function
import os import logging
import torch import torch.nn as nn import torch.nn.functional as F
BatchNorm2d = nn.BatchNorm2d BN_MOMENTUM = 0.01 logger = logging
原文地址: https://www.cveoy.top/t/topic/faDN 著作权归作者所有。请勿转载和采集!