Repository navigation
MLP implementation - #36
Closed
YunseonShin wants to merge 14 commits into
Closed
YunseonShin wants to merge 14 commits into
YunseonShin wants to merge 14 commits into
Conversation
nn.linear's weight parameter should be transposed. Check if the data layout stride is not equal to fixed layout stride. Transpose operation is fused with matrix multiplication with tiling. This transpose operation will be used to encode to custom instruction.
GEMM tile size can be dynamic. In this commit, tile size is determined by minimium value between static tile size and input tensor size Input and Weight both can be transposed. Check if the tensor box is transposed and reflect on template code. column major load & store are confusing. row and col values are switched to operate them with row major implicitly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These commits are implementation about MLP forward and backward pass.
MLP needs many operations (Softmax, ReLU, etc.)
There were some bugs and fixed.