Convolution 1D CNTK C++
Hello. Help me create a conv1D () function like Tensorflow. I described the code, but I'm not sure if it works the way I need it. Because the result is different from a similar model written in python Tensorflow. I'm not sure what the problem is here. Code c++: inputl = InputVariable({ DataShape.TotalSize() }, false, DataType::Float, L"features"); auto input = Reshape(inputl, DataShape); inputl->AsString() ------>>> Composite(Reshape): Input('features', [20000], [, #]) -> Output('Reshape1_Output_0', [500x 40], [, #])
auto convParam = Parameter({ 1, 40, 512}, AsDataType(), GlorotUniformInitializer()); auto layer = Convolution(convParam, input, { 1, 40}, { true }, { true }, { 1}, 1); layer ->AsString() ------>>> "Composite(BatchNormalization): Input('features', [20000], [, #]) -> Output('BatchNormalization16_Output_0', [500x 512], [, #])"
I need something like: Input data shape: 20000 = (40,40,40,......,40) = 500*40 After reshape input data, shape = (500, 40) conv1D() Output shape data = (400, 512)
Source: microsoft/CNTK