This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 8159ad6.
- Loading branch information
Showing
6 changed files
with
93 additions
and
294 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
/*! | ||
* Copyright (c) 2017 by Contributors | ||
* Copyright (c) 2016 by Contributors | ||
* \file indexing_op.cu | ||
* \brief | ||
* \author Siyi Li, Chi Zhang | ||
* \author Siyi Li | ||
*/ | ||
|
||
#include "./indexing_op.h" | ||
namespace mxnet { | ||
namespace op { | ||
NNVM_REGISTER_OP(Embedding) | ||
.set_attr<FCompute>("FCompute<gpu>", TakeOpForward<gpu>); | ||
.set_attr<FCompute>("FCompute<gpu>", EmbeddingOpForward<gpu>); | ||
|
||
NNVM_REGISTER_OP(take) | ||
.set_attr<FCompute>("FCompute<gpu>", TakeOpForward<gpu>); | ||
|
||
NNVM_REGISTER_OP(_backward_take) | ||
.set_attr<FCompute>("FCompute<gpu>", TakeOpBackward<gpu>); | ||
NNVM_REGISTER_OP(_backward_Embedding) | ||
.set_attr<FCompute>("FCompute<gpu>", EmbeddingOpBackward<gpu>); | ||
} // namespace op | ||
} // namespace mxnet | ||
|
This file contains 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
Oops, something went wrong.