Skip to content

Commit 0cbff4e

Browse files
author
NeiroYT
committed
Tidy again
1 parent 6e0a91b commit 0cbff4e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/layers/ConvLayer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ class ConvolutionalLayer : public Layer {
5959
useLegacyImpl_ = useLegacyImpl;
6060
}
6161

62-
std::vector<size_t> getNumericParams() const {
62+
[[nodiscard]] std::vector<size_t> getNumericParams() const {
6363
std::vector<size_t> res = {stride_, pads_, dilations_, group_};
6464
return res;
6565
}
6666

67-
std::vector<std::shared_ptr<Tensor>> getTensorParams() {
67+
[[nodiscard]] std::vector<std::shared_ptr<Tensor>> getTensorParams() {
6868
std::vector<std::shared_ptr<Tensor>> res = {kernel_, bias_};
6969
return res;
7070
}
7171

72-
bool getLegacyImplBool() const { return useLegacyImpl_; }
72+
[[nodiscard]] bool getLegacyImplBool() const { return useLegacyImpl_; }
7373

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

test/single_layer/test_convlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ TEST(ConvolutionalLayerTest, Getters) {
1818
Tensor input2 = make_tensor<float>(vec, {2, 2});
1919
std::vector<Tensor> in{input1, input2};
2020
std::vector<Tensor> output{input1};
21-
21+
2222
bool is_legacy = layer.getLegacyImplBool();
2323
std::vector<size_t> nums = layer.getNumericParams();
2424
auto tens = layer.getTensorParams();

0 commit comments

Comments
 (0)