"launch/tio/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "37a8ebaf7a8e9a3d503936cca34cb9546994015b"
Commit 9420d3ae authored by YuliangLiu0306's avatar YuliangLiu0306 Committed by binmakeswell
Browse files

fix format (#567)

parent 0f1da44e
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
using namespace std; using namespace std;
template <typename T> template <typename T> class Softmax {
class Softmax { public:
public:
struct Config { struct Config {
size_t nhead; size_t nhead;
Config(size_t nhead) : nhead(nhead) {} Config(size_t nhead) : nhead(nhead) {}
...@@ -35,10 +34,8 @@ class Softmax { ...@@ -35,10 +34,8 @@ class Softmax {
stream); stream);
} }
void reset_size(size_t nhead) { void reset_size(size_t nhead) { config_.nhead = nhead; }
config_.nhead = nhead;
}
private: private:
Config config_; Config config_;
}; };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment