Пример #1
0
        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);
        }
Пример #2
0
 public I3DTensor ExecuteToTensor(I3DTensor tensor)
 {
     return(tensor.MaxPool(_filterWidth, _filterHeight, _stride, null));
 }
Пример #3
0
 public IVector ExecuteToVector(I3DTensor tensor)
 {
     using (var ret = tensor.MaxPool(_filterWidth, _filterHeight, _stride, null))
         return(ret.ConvertToVector());
 }