Browse Source

fix format (#567)

pull/673/head
YuliangLiu0306 3 years ago committed by binmakeswell
parent
commit
9420d3ae31
  1. 11
      colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h

11
colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h

@ -10,9 +10,8 @@
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) {}
@ -35,10 +34,8 @@ class Softmax {
stream);
}
void reset_size(size_t nhead) {
config_.nhead = nhead;
}
void reset_size(size_t nhead) { config_.nhead = nhead; }
private:
private:
Config config_;
};

Loading…
Cancel
Save