-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GPU/OpenCL] Initial version of Concat Layer with OpenCL ops
Added naive version of OpenCL implementation for Concat Layer. Incorporated kernel for ops used. Added unit test for Concat_cl. Signed-off-by: Niket Agarwal <[email protected]>
- Loading branch information
1 parent
6f98e73
commit 904849a
Showing
9 changed files
with
798 additions
and
18 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @date 23 Feb 2024 | ||
* @see https://github.com/nnstreamer/nntrainer | ||
* @author Debadri Samaddar <[email protected]> | ||
* @author Niket Agarwal <[email protected]> | ||
* @author Niket Agarwal <[email protected]> | ||
* @bug No known bugs except for NYI items | ||
* @brief This file contains app context related functions and classes that | ||
* manages the global configuration of the current OpenCL environment. It also | ||
|
@@ -15,6 +15,7 @@ | |
|
||
#include <addition_layer_cl.h> | ||
#include <cl_context.h> | ||
#include <concat_cl.h> | ||
#include <fc_layer_cl.h> | ||
#include <swiglu_cl.h> | ||
|
||
|
@@ -36,6 +37,9 @@ static void add_default_object(ClContext &cc) { | |
|
||
cc.registerFactory(nntrainer::createLayer<SwiGLULayerCl>, SwiGLULayerCl::type, | ||
ml::train::LayerType::LAYER_SWIGLU); | ||
|
||
cc.registerFactory(nntrainer::createLayer<ConcatLayerCl>, ConcatLayerCl::type, | ||
ml::train::LayerType::LAYER_CONCAT); | ||
} | ||
|
||
static void registerer(ClContext &cc) noexcept { | ||
|
Oops, something went wrong.