mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-05 17:34:21 +00:00
Migrate output layer
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include "input.hpp"
|
||||
#include "layer.hpp"
|
||||
#include "max_pooling.hpp"
|
||||
#include "output.cuh"
|
||||
#include "output.hpp"
|
||||
|
||||
// Models
|
||||
#include "model.hpp"
|
||||
|
||||
@@ -46,6 +46,12 @@ class Output : public SequentialLayer {
|
||||
private:
|
||||
int inputSize;
|
||||
float* h_output;
|
||||
|
||||
float* forwardCPU(const float* input);
|
||||
|
||||
#ifdef USE_CUDA
|
||||
float* forwardCUDA(const float* input);
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace CUDANet::Layers
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "input.hpp"
|
||||
#include "layer.hpp"
|
||||
#include "module.hpp"
|
||||
#include "output.cuh"
|
||||
#include "output.hpp"
|
||||
|
||||
namespace CUDANet {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user