unary_op
¶
-
plaidml.tile.
unary_op
(value, op_str, name=None)[source]¶ Builds a Value for an elementwise unary operation.
Parameters: - value (Value) – The operation input.
- op_str (str) – The string to use for the operation. The string should be an expression in terms of ‘I’.
- name (str) – The name of the operation, or None.
Returns: Value – A Value representing the result of the operation.