-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
639 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
#include <string> | ||
|
||
#include "layers/Layer.hpp" | ||
|
||
namespace itlab_2023 { | ||
|
||
class DropOutLayer : public Layer { | ||
private: | ||
double drop_rate_; | ||
|
||
public: | ||
DropOutLayer() = default; | ||
DropOutLayer(double drop_rate) { drop_rate_ = drop_rate; } | ||
static std::string get_name() { return "DropOut layer"; } | ||
void run(const Tensor& input, Tensor& output) override; | ||
}; | ||
|
||
} // namespace itlab_2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
#include <string> | ||
|
||
#include "layers/Layer.hpp" | ||
|
||
namespace itlab_2023 { | ||
|
||
class FlattenLayer : public Layer { | ||
public: | ||
FlattenLayer() = default; | ||
static std::string get_name() { return "Flatten layer"; } | ||
void run(const Tensor& input, Tensor& output) override; | ||
}; | ||
|
||
} // namespace itlab_2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.