| 69 | } |
| 70 | |
| 71 | static Convolution2DCommon* createConvolution2DCommon(flatbuffers::FlatBufferBuilder& fbb, int kernelY, int kernelX, |
| 72 | PadMode padMode, int padY, int padX, int inputChannel, int outputChannel) { |
| 73 | auto builder = Convolution2DCommonBuilder(fbb); |
| 74 | builder.add_kernelX(kernelX); |
| 75 | builder.add_kernelY(kernelY); |
| 76 | builder.add_inputCount(inputChannel); |
| 77 | builder.add_outputCount(outputChannel); |
| 78 | builder.add_padX(padX); |
| 79 | builder.add_padY(padY); |
| 80 | builder.add_padMode(padMode); |
| 81 | auto offset = builder.Finish(); |
| 82 | return reinterpret_cast<Convolution2DCommon*>(fbb.GetCurrentBufferPointer() + fbb.GetSize() - offset.o); |
| 83 | } |
| 84 | |
| 85 | CPUConvolution3D::CPUConvolution3D(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs, |
| 86 | const MNN::Op *op, Backend *b) : MNN::Execution(b) { |
no test coverage detected