Open srikanthparupati opened 5 years ago
If you want output to have the same size as input, you should set input_padding = { 1, 1, 1, 1 };
(for 3x3 kernel)
@Maratyszcza In the above sample, I set the input padding to 0 since I set the output_size to {3, 3}.
I tried the above snippet by setting padding to 1 and output size same as input for 3x3 kernel. I am still seeing incorrect convolution output. (output array is set to 0). Do you see any issue with my code?
Do you check the status of the second nnp_convolution_inference
call?
Also, strategy
must be nnp_convolution_transform_strategy_compute
@Maratyszcza thanks a lot for response.
I am seeing "nnp_status_success" for second inference call with compute, precompute strategies.
If you want output to have the same size as input, you should set
input_padding = { 1, 1, 1, 1 };
(for 3x3 kernel)Also,
strategy
must bennp_convolution_transform_strategy_compute
Can you tell me where is nnp_convolution_inference is defined please?
I wrote small snippet of code to check NNPack convolution inference speed. For some reason nnp_convolution_inference method returns output with zeros. I am not able to figure out the issue with below snippet of code. Can you please help me with the issue.