RNN: size

This commit is contained in:
Shin committed 2016-04-24 19:35:59 +02:00
1 parent 66516ceb87
commit 947f2979e7
3 files changed
+26 -3

No files matched your search

@@ -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;