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)
def add_n(inputs, name=None): return ops.Eltwise(inputs, operation='SUM', name=name)
def LayerSetup(self, bottom): return _ops.Eltwise(bottom, **self.arguments)
def Setup(self, bottom): super(EltwiseLayer, self).Setup(bottom) return ops.Eltwise(bottom, **self._param)