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

[NNVM][TOPI] Add FTVMCompute for matmul #1239

Merged
merged 2 commits into from Jun 26, 2018
Merged

[NNVM][TOPI] Add FTVMCompute for matmul #1239

merged 2 commits into from Jun 26, 2018

Conversation

nhynes
Copy link
Member

@nhynes nhynes commented Jun 6, 2018

Kind of hard to define the gradient in terms of the forward operator without having an implementation thereof ;)

@nhynes nhynes changed the title Add FTVMCompute for matmul [NNVM][TOPI] Add FTVMCompute for matmul Jun 6, 2018
@@ -73,6 +73,9 @@ def schedule_dense(_, outs, target):

reg.register_pattern("dense", OpPattern.OUT_ELEMWISE_FUSABLE)

#matmul
reg.register_pattern("matmul", OpPattern.INJECTIVE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matmul is unlikely going to be injective, it should be OUT_ELEMWISE_FUSABLE, but the current set of schedule does not support this well. Consider change it to OUT_ELEMWISE_FUSABLE for now and use schedule injective

const Array<Tensor>& out_info) {
const MatMulParam& param = nnvm::get<MatMulParam>(attrs.parsed);
return Array<Tensor>{
topi::matmult(inputs[0], inputs[1], param.transpose_a, param.transpose_b)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

topi::matmult was an API that need to be updated to topi::matmul

@tqchen tqchen added status: review in progress status: need update need update based on feedbacks labels Jun 12, 2018
@tqchen tqchen merged commit 8ab7e0e into apache:master Jun 26, 2018
@nhynes nhynes deleted the fwd-matmul branch June 26, 2018 03:43
tqchen pushed a commit to tqchen/tvm that referenced this pull request Jul 6, 2018
mnuyens pushed a commit to mnuyens/tvm that referenced this pull request Jul 10, 2018
sergei-mironov pushed a commit to sergei-mironov/tvm that referenced this pull request Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants