Esempio n. 1
0
def add_n(inputs, name=None):
    """
    Adds all input tensors element-wise.

      Args:
        inputs: A list of `Tensor` objects, each with same shape and type.
        name: A name for the operation (optional).

      Returns:
        A `Tensor` of same shape and type as the elements of `inputs`.

    """

    return ops.Eltwise(inputs, operation='SUM', name=name)
Esempio n. 2
0
def add_n(inputs, name=None):

    return ops.Eltwise(inputs, operation='SUM', name=name)
Esempio n. 3
0
 def LayerSetup(self, bottom):
     return _ops.Eltwise(bottom, **self.arguments)
Esempio n. 4
0
 def Setup(self, bottom):
     super(EltwiseLayer, self).Setup(bottom)
     return ops.Eltwise(bottom, **self._param)