Review/update spec for NotEqual operation (#6797)
* Hiding the problem, Validate() changes 'function' * Review/update spec for NotEqual operation * Remove unnecessary edits not related to the ticket * Removing the extra word binary for the short description * Re-writing detailed description * Correcting punctuation docs/ops/comparison/NotEqual_1.md Co-authored-by: Tatiana Savina <tatiana.savina@intel.com> * Specifying auto_broadcast in the short description is similar to Equal spec * The range of values for auto_brodcast is similar to Equal spec and includes the missing pdpd Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
This commit is contained in:
parent
b8445401bc
commit
184b3cbe42
@ -4,7 +4,18 @@
|
|||||||
|
|
||||||
**Category**: Comparison binary operation
|
**Category**: Comparison binary operation
|
||||||
|
|
||||||
**Short description**: *NotEqual* performs element-wise comparison operation with two given tensors applying multi-directional broadcast rules.
|
**Short description**: *NotEqual* performs element-wise comparison operation with two given tensors applying
|
||||||
|
multi-directional broadcast rules specified in the `auto_broadcast` attribute.
|
||||||
|
|
||||||
|
**Detailed description**
|
||||||
|
Before performing comparison operation, input tensors *a* and *b* are broadcasted if their shapes are different.
|
||||||
|
Broadcasting is performed according to `auto_broadcast` value.
|
||||||
|
|
||||||
|
After broadcasting, *NotEqual* does the following with the input tensors *a* and *b*:
|
||||||
|
|
||||||
|
\f[
|
||||||
|
o_{i} = a_{i} != b_{i}
|
||||||
|
\f]
|
||||||
|
|
||||||
**Attributes**:
|
**Attributes**:
|
||||||
|
|
||||||
@ -13,7 +24,8 @@
|
|||||||
* **Description**: specifies rules used for auto-broadcasting of input tensors.
|
* **Description**: specifies rules used for auto-broadcasting of input tensors.
|
||||||
* **Range of values**:
|
* **Range of values**:
|
||||||
* *none* - no auto-broadcasting is allowed, all input shapes should match
|
* *none* - no auto-broadcasting is allowed, all input shapes should match
|
||||||
* *numpy* - numpy broadcasting rules, aligned with ONNX Broadcasting. Description is available in <a href="https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md">ONNX docs</a>.
|
* *numpy* - numpy broadcasting rules, description is available in [Broadcast Rules For Elementwise Operations](../broadcast_rules.md),
|
||||||
|
* *pdpd* - PaddlePaddle-style implicit broadcasting, description is available in [Broadcast Rules For Elementwise Operations](../broadcast_rules.md).
|
||||||
* **Type**: string
|
* **Type**: string
|
||||||
* **Default value**: "numpy"
|
* **Default value**: "numpy"
|
||||||
* **Required**: *no*
|
* **Required**: *no*
|
||||||
@ -31,15 +43,6 @@
|
|||||||
|
|
||||||
* *T*: arbitrary supported type.
|
* *T*: arbitrary supported type.
|
||||||
|
|
||||||
**Detailed description**
|
|
||||||
Before performing arithmetic operation, input tensors *a* and *b* are broadcasted if their shapes are different and `auto_broadcast` attributes is not `none`. Broadcasting is performed according to `auto_broadcast` value.
|
|
||||||
|
|
||||||
After broadcasting *NotEqual* does the following with the input tensors *a* and *b*:
|
|
||||||
|
|
||||||
\f[
|
|
||||||
o_{i} = a_{i} \neq b_{i}
|
|
||||||
\f]
|
|
||||||
|
|
||||||
**Examples**
|
**Examples**
|
||||||
|
|
||||||
*Example 1*
|
*Example 1*
|
||||||
|
Loading…
Reference in New Issue
Block a user