<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54959>54959</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Tosa.tile op only support 1d-4d tensor
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wang5566
</td>
</tr>
</table>
<pre>
`def Tosa_TileOp: Tosa_Op<"tile", [
DeclareOpInterfaceMethods<InferShapedTypeOpInterface,
["inferReturnTypeComponents"]>,
NoSideEffect]> {
let summary = "Tile operator";
let description = [{
Replicates input 0 multiplies times along each dimension.
}];
let arguments = (ins
Tosa_Tensor1Dto4D:$input1,
I64ArrayAttr:$multiples);
let results = (outs
Tosa_Tensor1Dto4D:$output
);
let hasFolder = 1;
}
`
tosa.tile op support 1d ~ 4d tensor, but when i convert yoloV3 model from tensorflow dialect to tosa dialect, a 5d tensor needed by tf.tile op, causing convertion failure.
So why tosa.tile op definition here is what it is.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFVE1vozAQ_TVwGTUifIYDh2zTSD3srtRGe105MASvjI3soRH_fseQpKnUqgiBbd6892bG5miaqQryqMEWDsaJvwep8PcQJNtl6oePQRwTL_MriB8hyH4E0S6ItjBfO6yVsBzzrAltK2r8idSZxnHgs27RvnZiwOYwDfcYJron-eryWnEsPc0L0mi1p3k0_WA0anLeUbYLkqfZ1x3fL_MqG3xqW6xpQUBQ3GwrJHBj3ws7QZDsgGl82mAGtIKM9bTJBX0f06CrrRxIGr3EsbvirhgvOChZC0IHUg8jQQT9qEjyKi-R7PkplNEnQFF30PCCdky2ulIExW52-4m2sKex9zlfHG-kdu_KS-uYzdj1jkzKHNsgTmcX6w-1fs7TrbVi2hLZBXSxiFzN8lNpi44hN2Ez0vfKDGLpW15fMHfC7Y1q0M7c63cM12EZ5NEyIJZZ0dIk7t0wGEuwbrhiT5A2QLMBvwuOXPZzhxok1Ea_IcMmo8yfBHrToILWmv4Cb5U5cxOE4k0CZMBrXOeeSkB2ZQaN2GADxwmovfrwmFqMTnJDL1p-Z7RCqtHipamvhu1M8ME_Hzap5Qzu0CJIxxhBIPl2q7CpkqZMShGSJIXV4T7UaDXd5f9wyx3C0aqqIxrc3IE93ydJ3Xhc1abniVJv19fDYM2_Ocm9dG70nd9naZmVYVelUbneJCIrkjKpiyLfoMijOOOh2KzFJguVOKJy1XIyNZ5hplhOYiirOIrjKF1vojwuomLVlnVd1m0kmC0py2OQRthzgVbex8rYU2ir2dJxPDn-qKQj9_5ROCdPXPtZjvnFyL8WW52FPmVZnoezdjV7_w-7gXiu">