[mlir][tosa] Add broadcasting case for tosa.resize degenerate case
When the resize is ?x1x1x?, the tosa.resize operation broadcasts the input and (when quantized) applies a scaling factor. Updated the resize operation to not use a tensor.extract operation, instead broadcasting the only positional value as necessary. Moved the tosa.resize tests to their own mlir test due to increased complexity. Also corrected a bug where tosa.resize for bilinear-floating point was not applying the correct scaling. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D136299
Loading
Please sign in to comment