RNN: size
This commit is contained in:
@@ -99,6 +99,14 @@ namespace Recurrent {
|
||||
|
||||
static std::unique_ptr<Network> deserialize(const SimpleJSON::Type::Object&);
|
||||
|
||||
std::size_t size() const {
|
||||
return neurons.size();
|
||||
};
|
||||
|
||||
NeuronInterface& operator[](std::size_t index) {
|
||||
return *neurons[index];
|
||||
}
|
||||
|
||||
typedef SimpleJSON::Factory<Network> Factory;
|
||||
protected:
|
||||
size_t inputSize=0;
|
||||
|
||||
Reference in New Issue
Block a user