public I3DTensor ExecuteToTensor(I3DTensor tensor, Stack <IConvolutionalLayerBackpropagation> backpropagation) { var indexPosList = new List <Dictionary <Tuple <int, int>, Tuple <int, int> > >(); var ret = tensor.MaxPool(_filterWidth, _filterHeight, _stride, indexPosList); if (backpropagation != null) { backpropagation.Push(new Backpropagation(_lap, indexPosList, tensor.ColumnCount, tensor.RowCount, ret.ColumnCount, ret.RowCount)); } return(ret); }
public I3DTensor ExecuteToTensor(I3DTensor tensor) { return(tensor.MaxPool(_filterWidth, _filterHeight, _stride, null)); }
public IVector ExecuteToVector(I3DTensor tensor) { using (var ret = tensor.MaxPool(_filterWidth, _filterHeight, _stride, null)) return(ret.ConvertToVector()); }