mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-12-24 07:14:22 +00:00
Migrate model class to Tensor
This commit is contained in:
@@ -19,14 +19,14 @@ class Module {
|
||||
|
||||
size_t output_size();
|
||||
|
||||
void register_layer(const std::string& name, Layer& layer);
|
||||
void register_layer(const std::string& name, Layer* layer);
|
||||
|
||||
void register_module(Module& module);
|
||||
|
||||
const std::vector<std::pair<std::string, Layer&>>& get_layers() const;
|
||||
const std::vector<std::pair<std::string, Layer*>>& get_layers() const;
|
||||
|
||||
protected:
|
||||
std::vector<std::pair<std::string, Layer&>> layers;
|
||||
std::vector<std::pair<std::string, Layer*>> layers;
|
||||
|
||||
CUDANet::Shape in_shape;
|
||||
CUDANet::Shape out_shape;
|
||||
|
||||
Reference in New Issue
Block a user