mirror of https://github.com/hpcaitech/ColossalAI
[NFC] polish colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h code style (#964)
parent
5bd80b7dd1
commit
7106a399fc
|
@ -10,8 +10,9 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
template <typename T> class Softmax {
|
||||
public:
|
||||
template <typename T>
|
||||
class Softmax {
|
||||
public:
|
||||
struct Config {
|
||||
size_t nhead;
|
||||
Config(size_t nhead) : nhead(nhead) {}
|
||||
|
@ -36,6 +37,6 @@ public:
|
|||
|
||||
void reset_size(size_t nhead) { config_.nhead = nhead; }
|
||||
|
||||
private:
|
||||
private:
|
||||
Config config_;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue