* Doc Migration from Gitlab (#1289) * doc migration * fix * Update FakeQuantize_1.md * Update performance_benchmarks.md * Updates graphs for FPGA * Update performance_benchmarks.md * Change DL Workbench structure (#1) * Changed DL Workbench structure * Fixed tags * fixes * Update ie_docs.xml * Update performance_benchmarks_faq.md * Fixes in DL Workbench layout * Fixes for CVS-31290 * [DL Workbench] Minor correction * Fix for CVS-30955 * Added nGraph deprecation notice as requested by Zoe * fix broken links in api doxy layouts * CVS-31131 fixes * Additional fixes * Fixed POT TOC * Update PAC_Configure.md PAC DCP 1.2.1 install guide. * Update inference_engine_intro.md * fix broken link * Update opset.md * fix * added opset4 to layout * added new opsets to layout, set labels for them * Update VisionAcceleratorFPGA_Configure.md Updated from 2020.3 to 2020.4 Co-authored-by: domi2000 <domi2000@users.noreply.github.com>
2.2 KiB
2.2 KiB
LogicalOr
Versioned name: LogicalOr-1
Category: Logical binary operation
Short description: LogicalOr performs element-wise logical OR operation with two given tensors applying multi-directional broadcast rules.
Attributes:
-
auto_broadcast
- Description: specifies rules used for auto-broadcasting of input tensors.
- Range of values:
- none - no auto-broadcasting is allowed, all input shapes should match
- numpy - numpy broadcasting rules, aligned with ONNX Broadcasting. Description is available in ONNX docs.
- Type: string
- Default value: "numpy"
- Required: no
Inputs
- 1: A tensor of type T. Required.
- 2: A tensor of type T. Required.
Outputs
- 1: The result of element-wise logical OR operation. A tensor of type boolean.
Types
- T: boolean type.
Detailed description
Before performing logical 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 LogicalOr does the following with the input tensors a and b:
\f[ o_{i} = a_{i} or b_{i} \f]
Examples
Example 1
<layer ... type="LogicalOr">
<input>
<port id="0">
<dim>256</dim>
<dim>56</dim>
</port>
<port id="1">
<dim>256</dim>
<dim>56</dim>
</port>
</input>
<output>
<port id="2">
<dim>256</dim>
<dim>56</dim>
</port>
</output>
</layer>
Example 2: broadcast
<layer ... type="LogicalOr">
<input>
<port id="0">
<dim>8</dim>
<dim>1</dim>
<dim>6</dim>
<dim>1</dim>
</port>
<port id="1">
<dim>7</dim>
<dim>1</dim>
<dim>5</dim>
</port>
</input>
<output>
<port id="2">
<dim>8</dim>
<dim>7</dim>
<dim>6</dim>
<dim>5</dim>
</port>
</output>
</layer>