@Override public L2Vertex clone() { return new L2Vertex(); }
@Override public MemoryReport getMemoryReport(InputType... inputTypes) { InputType outputType = getOutputType(-1, inputTypes); //Inference: only calculation is for output activations; no working memory //Working memory for training: //1 for each example (fwd pass) + output size (1 per ex) + input size + output size... in addition to the returned eps arrays //output size == input size here int trainWorkingSizePerEx = 3 + 2 * inputTypes[0].arrayElementsPerExample(); return new LayerMemoryReport.Builder(null, L2Vertex.class, inputTypes[0], outputType).standardMemory(0, 0) //No params .workingMemory(0, 0, 0, trainWorkingSizePerEx).cacheMemory(0, 0) //No caching .build(); } }