[Loss] Remove Empty KLD Loss files
authorDonghak PARK <donghak.park@samsung.com>
Fri, 18 Oct 2024 02:31:16 +0000 (11:31 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 18 Oct 2024 11:04:38 +0000 (20:04 +0900)
Currently, the KLD Loss file has only the function name and is empty.
Therefore, I will remove this file now and implement it after retesting with test cases and verification in the next issue #2757.

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <donghak.park@samsung.com>
nntrainer/layers/loss/kld_loss_layer.cpp [deleted file]
nntrainer/layers/loss/kld_loss_layer.h [deleted file]
nntrainer/layers/loss/meson.build

diff --git a/nntrainer/layers/loss/kld_loss_layer.cpp b/nntrainer/layers/loss/kld_loss_layer.cpp
deleted file mode 100644 (file)
index 20910c2..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-/**
- * Copyright (C) 2021 Jihoon Lee <jhoon.it.lee@samsung.com>
- *
- * @file   kld_loss_layer.cpp
- * @date   25 November 2021
- * @brief  KLD (Kullback-Leibler Divergence) loss implementation
- * @see    https://github.com/nnstreamer/nntrainer
- * @author Jihoon Lee <jhoon.it.lee@samsung.com>
- * @bug    No known bugs except for NYI items
- *
- */
-#include <kld_loss_layer.h>
-#include <layer_context.h>
-#include <string>
-#include <vector>
-
-namespace nntrainer {
-KLDLossLayer::KLDLossLayer() {}
-
-KLDLossLayer::~KLDLossLayer() {}
-
-void KLDLossLayer::setProperty(const std::vector<std::string> &values) {}
-
-void KLDLossLayer::forwarding(RunLayerContext &context, bool training) {}
-
-void KLDLossLayer::calcDerivative(RunLayerContext &context) {}
-} // namespace nntrainer
diff --git a/nntrainer/layers/loss/kld_loss_layer.h b/nntrainer/layers/loss/kld_loss_layer.h
deleted file mode 100644 (file)
index 30291d7..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-/**
- * Copyright (C) 2021 Jihoon Lee <jhoon.it.lee@samsung.com>
- *
- * @file   kld_loss_layer.h
- * @date   25 November 2021
- * @brief  KLD (Kullback-Leibler Divergence) loss implementation
- * @see    https://github.com/nnstreamer/nntrainer
- * @author Jihoon Lee <jhoon.it.lee@samsung.com>
- * @bug    No known bugs except for NYI items
- *
- */
-#ifndef __KLD_LOSS_LAYER_H__
-#define __KLD_LOSS_LAYER_H__
-
-#ifdef __cplusplus
-
-#include <loss_layer.h>
-#include <string>
-#include <vector>
-
-namespace nntrainer {
-
-/**
- * @class   KLD (Kullback-Leibler Divergence) Loss layer
- * @brief   kld loss layer
- */
-class KLDLossLayer final : public LossLayer {
-public:
-  /**
-   * @brief     Constructor of Constant Loss Layer
-   */
-  KLDLossLayer();
-
-  /**
-   * @brief     Destructor of MSE Loss Layer
-   */
-  ~KLDLossLayer();
-
-  /**
-   * @copydoc Layer::setProperty(const std::vector<std::string> &values)
-   */
-  void setProperty(const std::vector<std::string> &values) override;
-
-  /**
-   * @copydoc Layer::forwarding(RunLayerContext &context, bool training)
-   */
-  void forwarding(RunLayerContext &context, bool training) override;
-
-  /**
-   * @copydoc Layer::calcDerivative(RunLayerContext &context)
-   */
-  void calcDerivative(RunLayerContext &context) override;
-
-  /**
-   * @copydoc Layer::getType()
-   */
-  const std::string getType() const override { return KLDLossLayer::type; }
-
-  inline static const std::string type = "kld";
-};
-} // namespace nntrainer
-
-#endif /* __cplusplus */
-
-#endif // __KLD_LOSS_LAYER_H__
index 9fccd0290d2354f0d8ed4582b6c070b7f8b7cb3b..2370b613ade834437ed1e9b520417e46fbe9a116 100644 (file)
@@ -1,6 +1,5 @@
 loss_layer_sources = [
   'loss_layer.cpp',
-  'kld_loss_layer.cpp',
   'mse_loss_layer.cpp',
   'cross_entropy_sigmoid_loss_layer.cpp',
   'cross_entropy_softmax_loss_layer.cpp',