17 #include "caffe2/operators/conv_transpose_op.h" 18 #include "caffe2/operators/conv_transpose_op_impl.h" 22 REGISTER_CPU_OPERATOR(ConvTranspose, ConvTransposeOp<float, CPUContext>);

24 OPERATOR_SCHEMA(ConvTranspose)

28 The transposed convolution consumes an input vector, the filter blob, and 29 the bias blob, and computes the output. Note that other parameters, such as 30 the stride and kernel size, or the pads' sizes in each direction are not 31 necessary for input because they are provided by the 32 ConvTransposeUnpoolOpBase operator. Various dimension checks are done 33 implicitly, and the sizes are specified in the Input docs for this operator. 34 As is expected, the filter is deconvolved with a subset of the 35 image and the bias is added; this is done throughout the image data and the 36 output is computed. As a side note on the implementation layout: 37 conv_transpose_op_impl.h is the templated implementation of the 38 conv_transpose_op.h file, which is why they are separate files. 43 "Input data blob from previous layer; has size " 44 "(N x C x H x W), where N is the batch size, C is the number of channels, and" 45 " H and W are the height and width. Note that this is for the NCHW usage. On " 46 "the other hand, the NHWC Op has a different set of dimension constraints.")

50 "The filter blob that will be used in the transposed " 51 "convolution; has size (M x C x kH x kW), where C is the number of channels," 52 " and kH and kW are the height and width of the kernel.")

56 "The 1D bias blob that is added through the convolution;" 57 "has size (C). Optional, if not passed, will treat it as all 0.")

61 "Output data blob that contains the result of the " 62 "transposed convolution. The output dimensions are functions of the kernel" 63 " size, stride size, and pad lengths.");

Copyright (c) 2016-present, Facebook, Inc.