Skip to content

Commit

Permalink
[Trivial] Clang format fixed
Browse files Browse the repository at this point in the history
Clang format fixed and comments removed.

Signed-off-by: Yash Singh <[email protected]>
  • Loading branch information
yashSingh0723 committed Nov 18, 2024
1 parent 9f9e87d commit ad143ee
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion nntrainer/layers/cl_layers/addition_layer_cl.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AdditionLayerCL : public Layer {
/**
* @brief Destructor of Addition Layer
*/
~AdditionLayerCL() {};
~AdditionLayerCL(){};

/**
* @brief Move constructor of AdditionLayer.
Expand Down
15 changes: 0 additions & 15 deletions nntrainer/layers/cl_layers/custom_vocab_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ nntrainer::VocabSelectionNNTrainer::VocabSelectionNNTrainer(
this->lshBits = lshBlockNum * lshBlockSize;
this->lshData = std::vector<lshDataBlock>(this->vocabCnt * lshBlockNum);

// for (unsigned int i = 0; i < vocabCnt; ++i) {
// for (unsigned int j = 0; j < lshBlockNum; ++j) {
// unsigned int actualSize = std::min(lshBlockSize, hiddenSize -
// (int)j * lshBlockSize); lshDataBlock d; for (unsigned int k = 0; k
// < actualSize; ++k) {
// d[k] = weights.getValue<_FP16>(0, 0, i, j * lshBlockSize + k) >
// 0 ? 1 : 0;
// }
// for (unsigned int k = actualSize; k < lshBlockSize; ++k) {
// d[k] = 0;
// }
// this->lshData[i * lshBlockNum + j] = d;
// }
// }

for (unsigned int i = 0; i < lshBlockNum; ++i) {
unsigned int actualSize =
std::min(lshBlockSize, hiddenSize - (int)i * lshBlockSize);
Expand Down
2 changes: 1 addition & 1 deletion nntrainer/layers/cl_layers/custom_vocab_selection.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class VocabSelectionNNTrainer : public VocabSelection {
/**
* @brief Destructor of VocabSelectionNNTrainer class
*/
~VocabSelectionNNTrainer() {};
~VocabSelectionNNTrainer(){};
};

} // namespace nntrainer
Expand Down
2 changes: 1 addition & 1 deletion nntrainer/layers/cl_layers/lm_head_layer_cl.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class CustomLMHeadLayerCl : public LayerImpl {
* @copydoc Layer::exportTo(Exporter &exporter, ExportMethods method)
*/
void exportTo(nntrainer::Exporter &exporter,
const ml::train::ExportMethods &method) const override {};
const ml::train::ExportMethods &method) const override{};

/**
* @copydoc Layer::getType()
Expand Down

0 comments on commit ad143ee

Please sign in to comment.