from Operation import Operation

class add(Operation):
	"""Returns x + y element-wise.
    """

	def __init__(self, x, y):
		"""Construct add

        Args:
          x: First summand node
          y: Second summand node
        """
		super().__init__([x, y])

	def compute(self, x_value, y_value):
		"""Compute the output of the add operation

        Args:
          x_value: First summand value
          y_value: Second summand value
        """
		return x_value + y_value