mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-08 21:03:16 +00:00
fix format (#565)
This commit is contained in:
parent
1762ba14ab
commit
e014144c44
@ -13,16 +13,14 @@
|
|||||||
#include "cublas_wrappers.h"
|
#include "cublas_wrappers.h"
|
||||||
#include "kernels.h"
|
#include "kernels.h"
|
||||||
|
|
||||||
template <typename T>
|
template <typename T> class FeedForward {
|
||||||
class FeedForward {
|
public:
|
||||||
public:
|
|
||||||
struct Config {
|
struct Config {
|
||||||
int outputSize;
|
int outputSize;
|
||||||
int inputSize;
|
int inputSize;
|
||||||
std::array<int, 3> gemm_algos;
|
std::array<int, 3> gemm_algos;
|
||||||
Config(int outputs, int inputs)
|
Config(int outputs, int inputs)
|
||||||
: outputSize(outputs),
|
: outputSize(outputs), inputSize(inputs),
|
||||||
inputSize(inputs),
|
|
||||||
gemm_algos(std::array<int, 3>({99, 99, 99})) {}
|
gemm_algos(std::array<int, 3>({99, 99, 99})) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -63,6 +61,6 @@ class FeedForward {
|
|||||||
config_.inputSize = inputSize;
|
config_.inputSize = inputSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Config config_;
|
Config config_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user