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;
|
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:
|
||||||
|
|
||||||
void reset_size(size_t nhead) { config_.nhead = nhead; }
|
void reset_size(size_t nhead) { config_.nhead = nhead; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Config config_;
|
Config config_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue