summaryrefslogtreecommitdiff
path: root/torch/legacy/nn/Mean.py
blob: 905d91dbbfbddffab0af8259b55bd3a846169983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import torch
from .Sum import Sum

"""

This file is still here because of backward compatibility.

Please use instead "nn.Sum(dimension, nInputDims, sizeAverage)"

"""

class Mean(Sum):

    def __init__(self, dimension):
        super(Mean, self).__init__(dimension, True)