Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand All @@ -36,6 +37,6 @@ template <typename T> class Softmax {

void reset_size(size_t nhead) { config_.nhead = nhead; }

private:
private:
Config config_;
};