Searched refs:zero_type (Results 1 – 2 of 2) sorted by relevance
616 RankedTensorType zero_type = RankedTensorType::get({}, element_dtype); in matchAndRewrite() local617 Attribute zero_attr = rewriter.getZeroAttr(zero_type); in matchAndRewrite()618 auto zero = rewriter.create<arith::ConstantOp>(loc, zero_type, zero_attr); in matchAndRewrite()
466 ShapedType zero_type = in convertZerosLikeOp() local468 Attribute zero_attr = rewriter.getZeroAttr(zero_type); in convertZerosLikeOp()470 return CreateOpAndInfer<tosa::ConstOp>(rewriter, op->getLoc(), zero_type, in convertZerosLikeOp()