Skip to content

Commit 522b8ee

Browse files
author
NeiroYT
committed
New issue with namings
1 parent c3b6211 commit 522b8ee

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

include/layers/BinaryOpLayer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BinaryOpLayer : public Layer {
1515
enum class Operation : uint8_t { kMul, kAdd, kSub, kDiv };
1616

1717
BinaryOpLayer() : Layer(kBinaryOp), op_(Operation::kMul) {}
18-
explicit BinaryOpLayer(Operation op) : op_(op), Layer(kBinaryOp) {}
18+
explicit BinaryOpLayer(Operation op) : Layer(kBinaryOp), op_(op) {}
1919

2020
void run(const std::vector<Tensor>& input,
2121
std::vector<Tensor>& output) override;

include/layers/ConcatLayer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace it_lab_ai {
1111

1212
class ConcatLayer : public Layer {
1313
public:
14-
explicit ConcatLayer(int64_t axis = 0) : axis_(axis), Layer(kConcat) {}
14+
explicit ConcatLayer(int64_t axis = 0) : Layer(kConcat), axis_(axis) {}
1515

1616
void run(const std::vector<Tensor>& input,
1717
std::vector<Tensor>& output) override;

include/layers/DropOutLayer.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ class DropOutLayer : public Layer {
1010
double drop_rate_;
1111

1212
public:
13-
DropOutLayer(double drop_rate = 0.0) : Layer(kDropout) { drop_rate_ = drop_rate; }
13+
DropOutLayer(double drop_rate = 0.0) : Layer(kDropout) {
14+
drop_rate_ = drop_rate;
15+
}
1416
void run(const std::vector<Tensor>& input,
1517
std::vector<Tensor>& output) override;
1618
#ifdef ENABLE_STATISTIC_WEIGHTS

include/layers/OutputLayer.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ namespace it_lab_ai {
1212
class OutputLayer : public Layer {
1313
public:
1414
OutputLayer() : Layer(kOutput) {}
15-
OutputLayer(const std::vector<std::string>& labels) : Layer(kOutput), labels_(labels) {}
15+
OutputLayer(const std::vector<std::string>& labels)
16+
: Layer(kOutput), labels_(labels) {}
1617
void run(const std::vector<Tensor>& input,
1718
std::vector<Tensor>& output) override {
1819
output = input;

0 commit comments

Comments
 (0)