mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Change forward function to return output pointer
This commit is contained in:
@@ -18,7 +18,7 @@ class Dense : public ILayer {
|
||||
);
|
||||
~Dense();
|
||||
|
||||
void forward(const float* d_input, float* d_output);
|
||||
float* forward(const float* d_input);
|
||||
void setWeights(const float* weights);
|
||||
void setBiases(const float* biases);
|
||||
|
||||
@@ -26,6 +26,8 @@ class Dense : public ILayer {
|
||||
int inputSize;
|
||||
int outputSize;
|
||||
|
||||
float* d_output;
|
||||
|
||||
float* d_weights;
|
||||
float* d_biases;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user