# binary_op¶

plaidml.tile.binary_op(lhs, rhs, op_str, dtype=None, name=None)[source]

Builds a Value for an elementwise binary operation.

Parameters: lhs (Value or numeric) – The left-hand side of the operation. rhs (Value or numeric) – The right-hand side of the operation. op_str (str) – The string to use for the operation. The string should be an expression in terms of ‘L’ and ‘R’. dtype (plaidml.DType) – If not None, supplies the operation dtype; otherwise, the common dtype of lhs and rhs is used. name (str) – The name of the operation, or None. Value – A Value representing the result of the operation.