From e0bc0d8e082f0eb9dc7c0473fdb30bcbd22614a0 Mon Sep 17 00:00:00 2001 From: Eunju Yang Date: Wed, 20 Nov 2024 11:38:37 +0900 Subject: [PATCH] [ trivial ] clang format & revert some tmp codes - clang format is applied. - revert Android.mk Signed-off-by: Eunju Yang --- nntrainer/cl_context.cpp | 7 +++---- test/jni/Android.mk | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nntrainer/cl_context.cpp b/nntrainer/cl_context.cpp index fa97a3771..21c06637e 100644 --- a/nntrainer/cl_context.cpp +++ b/nntrainer/cl_context.cpp @@ -44,9 +44,8 @@ static void add_default_object(ClContext &cc) { // ml::train::LayerType::LAYER_ADDITION); // @todo swiglulayercl also needs to be updated. - cc.registerFactory(nntrainer::createLayer, - SwiGLULayerCl::type, - ml::train::LayerType::LAYER_SWIGLU); + cc.registerFactory(nntrainer::createLayer, SwiGLULayerCl::type, + ml::train::LayerType::LAYER_SWIGLU); if (ReshapeLayerCl::registerClKernels()) { cc.registerFactory(nntrainer::createLayer, @@ -56,7 +55,7 @@ static void add_default_object(ClContext &cc) { // @todo rmsnormlayercl also needs to be updated. cc.registerFactory(nntrainer::createLayer, - RMSNormLayerCl::type, ml::train::LayerType::LAYER_RMSNORM); + RMSNormLayerCl::type, ml::train::LayerType::LAYER_RMSNORM); if (ConcatLayerCl::registerClKernels()) { cc.registerFactory(nntrainer::createLayer, diff --git a/test/jni/Android.mk b/test/jni/Android.mk index 71ce4d2d5..5dcc005dc 100644 --- a/test/jni/Android.mk +++ b/test/jni/Android.mk @@ -444,11 +444,13 @@ LOCAL_SRC_FILES := \ ../unittest/layers/unittest_layers_impl.cpp \ ../unittest/layers/unittest_layers_transpose_cl.cpp \ ../unittest/layers/unittest_layers_concat_cl.cpp \ + ../unittest/layers/unittest_layers_swiglu_cl.cpp \ ../unittest/layers/unittest_layers_fully_connected_cl.cpp \ ../unittest/layers/unittest_layers_input.cpp \ ../unittest/layers/unittest_layers_loss.cpp \ ../unittest/layers/unittest_layers_reshape_cl.cpp \ ../unittest/layers/unittest_layers_fully_connected.cpp \ + ../unittest/layers/unittest_layers_rmsnorm_cl.cpp \ ../unittest/layers/unittest_layers_batch_normalization.cpp \ ../unittest/layers/unittest_layers_layer_normalization.cpp \ ../unittest/layers/unittest_layers_convolution2d.cpp \