Versioned name: Sign-1

Category: Arithmetic

Short description: Sign performs element-wise Sign operation with given tensor.

OpenVINO description: This OP is as same as OpenVINO OP

Mathematical Formulation

\[output_{i} = sign( input_{i} )\]

Attributes: Sign operation has no attributes.


  • 1: A tensor of type T. Required.

    • Type: T


  • 1: The result of element-wise sign operation. A tensor of type T with mapped elements of the input tensor to -1 (if it is negative), 0 (if it is zero), or 1 (if it is positive).

    • Type: T


  • T: f32, f16, bf16.

  • Note: Inputs and outputs have the same data type denoted by T. For example, if input is f32 tensor, then all other tensors have f32 data type.