Fix errors for VariadicSplit layer restored from serialized IR (#5613)
* Fix errors in VariadicSplit layer restored from serialized IR * Update VariadicSplit specification and error message to allow 1D tensors on 1st input * Update spec * Resolve comments * Apply comments, add unit tests * Update unit tests
This commit is contained in:
1 parent
ec5aa2fefd
commit
538f407829
4 files changed
+87
-5
No files matched your search
@@ -8,7 +8,7 @@
|
||||
|
||||
**Detailed Description**
|
||||
|
||||
*VariadicSplit* operation splits a given input tensor `data` into chunks along a scalar `axis`. It produces multiple output tensors based on additional input tensor `split_lengths`.
|
||||
*VariadicSplit* operation splits a given input tensor `data` into chunks along a scalar or tensor with shape `[1]` `axis`. It produces multiple output tensors based on additional input tensor `split_lengths`.
|
||||
The i-th output tensor shape is equal to the input tensor `data` shape, except for dimension along `axis` which is `split_lengths[i]`.
|
||||
|
||||
\f[
|
||||
@@ -23,7 +23,7 @@ Where D is the rank of input tensor `data`. The sum of elements in `split_length
|
||||
|
||||
* **1**: `data`. A tensor of type `T1` and arbitrary shape. **Required.**
|
||||
|
||||
* **2**: `axis`. Axis along `data` to split. A scalar of type `T2` with value from range `-rank(data) .. rank(data)-1`. Negative values address dimensions from the end.
|
||||
* **2**: `axis`. Axis along `data` to split. A scalar or tensor with shape `[1]` of type `T2` with value from range `-rank(data) .. rank(data)-1`. Negative values address dimensions from the end.
|
||||
**Required.**
|
||||
|
||||
* **3**: `split_lengths`. A list containing the dimension values of each output tensor shape along the split `axis`. A 1D tensor of type `T2`. The number of elements in `split_lengths` determines the number of outputs. The sum of elements in `split_lengths` must match `data.shape[axis]`. In addition `split_lengths` can contain a single `-1` element, which means, all remaining items along specified `axis` that are not consumed by other parts. **Required.**
|
||||
|
||||
Reference in new issue
Block a user