return success();
}
-static SmallVector<int64_t> ConvertToMlirShape(ArrayRef<int64_t> shape) {
+static SmallVector<int64_t> convertToMlirShape(ArrayRef<int64_t> shape) {
return to_vector(llvm::map_range(shape, [](int64_t dim) {
return dim == -1 ? ShapedType::kDynamicSize : dim;
}));
ArrayAttr newShape = adaptor.getNewShape();
llvm::SmallVector<int64_t> newShapeValue;
getI64Values(newShape, newShapeValue);
- newShapeValue = ConvertToMlirShape(newShapeValue);
+ newShapeValue = convertToMlirShape(newShapeValue);
// We cannot infer from the total number of elements so we must take the
// shape attribute as exact.
TransposeConv2DOp::Adaptor adaptor(operands.getValues(), attributes);
llvm::SmallVector<int64_t> outputShape;
getI64Values(adaptor.getOutShape(), outputShape);
- outputShape = ConvertToMlirShape(outputShape);
+ outputShape = convertToMlirShape(outputShape);
int64_t inputWidth = ShapedType::kDynamicSize;
int64_t inputHeight = ShapedType::kDynamicSize;