* 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.1 KiB
2.1 KiB
Bucketize
Versioned name: Bucketize-3
Category: Condition operation
Short description: Bucketize bucketizes the input based on boundaries. This is similar to Reference.
Detailed description: Bucketize computes a bucket index for each element from the first input and outputs a tensor of the first input shape. Buckets are defined with boundaries from the second input.
For example, if the first input tensor is [[3, 50], [10, -1]] and the second input is [0, 5, 10] with included right bound, the output will be [[1, 3], [2, 0]].
Attributes
-
output_type
- Description: the output tensor type
- Range of values: "i64" or "i32"
- Type: string
- Default value: "i64"
- Required: No
-
with_right_bound
- Description: indicates whether bucket includes the right or the left edge of interval.
- Range of values:
- True - bucket includes the right interval edge
- False - bucket includes the left interval edge
- Type:
boolean - Default value: True
- Required: no
Inputs:
- 1: N-D tensor of T type with elements for the bucketization. Required.
- 2: 1-D tensor of T_BOUNDARIES type with sorted unique boundaries for buckets. Required.
Outputs:
- 1: Output tensor with bucket indices of T_IND type. If the second input is empty, the bucket index for all elements is equal to 0. The output tensor shape is the same as the first input tensor shape.
Types
-
T: any numeric type.
-
T_BOUNDARIES: any numeric type.
-
T_IND:
int32orint64.
Example
<layer ... type="Bucketize">
<input>
<port id="0">
<dim>49</dim>
<dim>11</dim>
</port>
<port id="1">
<dim>5</dim>
</port>
</input>
<output>
<port id="1">
<dim>49</dim>
<dim>11</dim>
</port>
</output>
</layer>