mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-05 03:26:48 +00:00
fix format (#567)
This commit is contained in:
parent
0f1da44e5e
commit
9420d3ae31
@ -10,8 +10,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T> class Softmax {
|
||||||
class Softmax {
|
|
||||||
public:
|
public:
|
||||||
struct Config {
|
struct Config {
|
||||||
size_t nhead;
|
size_t nhead;
|
||||||
@ -35,9 +34,7 @@ class Softmax {
|
|||||||
stream);
|
stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset_size(size_t nhead) {
|
void reset_size(size_t nhead) { config_.nhead = nhead; }
|
||||||
config_.nhead = nhead;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Config config_;
|
Config config_;
|
||||||
|
Loading…
Reference in New Issue
Block a user