Commit 7106a399 authored by Yuer867's avatar Yuer867 Committed by binmakeswell
Browse files

[NFC] polish colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h code style (#964)

parent 5bd80b7d
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
using namespace std; using namespace std;
template <typename T> class Softmax { template <typename T>
public: class Softmax {
public:
struct Config { struct Config {
size_t nhead; size_t nhead;
Config(size_t nhead) : nhead(nhead) {} Config(size_t nhead) : nhead(nhead) {}
...@@ -36,6 +37,6 @@ public: ...@@ -36,6 +37,6 @@ public:
void reset_size(size_t nhead) { config_.nhead = nhead; } void reset_size(size_t 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