输入一个conv2d层或transposedconv2d层,并为sn层命名。 inputlayer需要:过滤器大小,num个过滤器(输出通道大小),num个通道(输入通道大小)。 例子 : SpectralNormalization(convolution2dLayer(filterSize,numFilters,“ NumChannels”,3,'Stride',2,'Padding','same','Name','conv1'),“ sn1”)
SpectralNormalization(transposedConv2dLayer(filterSize,numFilters,“ NumChannels”,64,'Name','detc5',“ Stride”,2,'Cropping','same'),“ sn19”)
2021-10-14 11:41:41
2KB
matlab
1