Skip to content

Refine ExpandConvLayer.cpp #4128

@hedaoyuan

Description

@hedaoyuan

Based on previous code refactoring #2282, the file ExpandConvTransLayer has been removed. By further refactoring the convolution layer of im2col + gemm, we can remove the ExpandConvBaseLayer file.

  • The addSharedBias and bpropSharedBias implementation in the ExpandConvBaseLayer is less performance, we can use Matrix::addSharedBias and Matrix::collectSharedBias to replace.
  • After removing the four functions related to the bias operation, ExpandConvBaseLayer has only one init function, so we can further refactor to remove this class.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions