mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Initialize and use cuBLAS properly
This commit is contained in:
@@ -15,7 +15,8 @@ namespace Layers {
|
||||
~Dense();
|
||||
|
||||
void forward(const float* input, float* output);
|
||||
void to_cuda();
|
||||
virtual void setWeights(const std::vector<std::vector<float>>& weights) = 0;
|
||||
virtual void setBiases(const std::vector<float>& biases) = 0;
|
||||
|
||||
private:
|
||||
int inputSize;
|
||||
@@ -31,6 +32,7 @@ namespace Layers {
|
||||
|
||||
void initializeWeights();
|
||||
void initializeBiases();
|
||||
void toCuda();
|
||||
};
|
||||
|
||||
} // namespace Layers
|
||||
|
||||
Reference in New Issue
Block a user