Home
last modified time | relevance | path

Searched refs:weightType (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Utils/
H A DQuantUtils.cpp120 auto weightType = weight.getType().dyn_cast<ShapedType>(); in buildConvOpQuantizationAttr() local
122 if (!inputType || !weightType) in buildConvOpQuantizationAttr()
126 auto weightPerTensorQType = GET_UQTYPE(weightType); in buildConvOpQuantizationAttr()
127 auto weightPerAxisQType = weightType.getElementType() in buildConvOpQuantizationAttr()
239 auto weightType = weight.getType().dyn_cast<ShapedType>(); in buildConvOpResultTypeInfo() local
241 assert(inputType && weightType && in buildConvOpResultTypeInfo()
245 auto weightQType = GET_QTYPE(weightType); in buildConvOpResultTypeInfo()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaDecomposeDepthwise.cpp32 ShapedType weightType = weight.getType().cast<ShapedType>(); in matchAndRewrite() local
36 if (!(inputType.hasStaticShape() && weightType.hasStaticShape() && in matchAndRewrite()
54 ArrayRef<int64_t> weightShape = weightType.getShape(); in matchAndRewrite()
H A DTosaDecomposeConv2D.cpp31 ShapedType weightType = weight.getType().cast<ShapedType>(); in matchAndRewrite() local
39 if (!weightType.hasRank()) in matchAndRewrite()
49 ArrayRef<int64_t> weightShape = weightType.getShape(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Tosa/
H A DTosaTestPasses.cpp121 auto weightType = in matchAndRewrite() local
125 if (!weightType) in matchAndRewrite()
137 weightType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaOps.cpp106 auto weightType = in verifyConvOp() local
114 if (!weightType) { in verifyConvOp()
120 auto weightEType = weightType.getElementType(); in verifyConvOp()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp541 VectorType weightType = VectorType::get(2, rewriter.getI32Type()); in matchAndRewrite() local
542 branchWeights = DenseElementsAttr::get(weightType, weights->getValue()); in matchAndRewrite()