コード例 #1
0
ファイル: MaxPoolingLayer.cs プロジェクト: fcmai/brightwire
        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());
 }