Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onnx Parser: Function AddConvLayerWithDepthwiseConv with bias has logical error #776

Open
haibozhang123 opened this issue Jun 20, 2024 · 1 comment
Labels
TIME WAIT Waiting for an approppriate period for a response before closing the issue.

Comments

@haibozhang123
Copy link

right logic code :

DepthwiseConvolution2dDescriptor desc;
desc.m_PadLeft = convDesc.m_PadLeft;
desc.m_PadRight = convDesc.m_PadRight;
desc.m_PadTop = convDesc.m_PadTop;
desc.m_PadBottom = convDesc.m_PadBottom;
desc.m_StrideX = convDesc.m_StrideX;
desc.m_StrideY = convDesc.m_StrideY;
desc.m_BiasEnabled = convDesc.m_BiasEnabled;
if (node.input_size() == 3) {
desc.m_BiasEnabled = true;
}

error logic code :

DepthwiseConvolution2dDescriptor desc;
desc.m_PadLeft = convDesc.m_PadLeft;
desc.m_PadRight = convDesc.m_PadRight;
desc.m_PadTop = convDesc.m_PadTop;
desc.m_PadBottom = convDesc.m_PadBottom;
desc.m_StrideX = convDesc.m_StrideX;
desc.m_StrideY = convDesc.m_StrideY;
desc.m_BiasEnabled = convDesc.m_BiasEnabled;

@Colm-in-Arm
Copy link
Collaborator

Hi,

Good spot. The value of m_BiasEnabled will be the default value, false. However, if you look further down in the section handling the bias tensor you'll see it sets "desc.m_BiasEnabled = true;" The line "desc.m_BiasEnabled = convDesc.m_BiasEnabled;" is ensuring the default value is set.

Colm.

@Colm-in-Arm Colm-in-Arm added the TIME WAIT Waiting for an approppriate period for a response before closing the issue. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TIME WAIT Waiting for an approppriate period for a response before closing the issue.
Projects
None yet
Development

No branches or pull requests

2 participants