Home
last modified time | relevance | path

Searched refs:ConvOp (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconv_ops.cc43 class ConvOp : public XlaOpKernel { class
45 explicit ConvOp(OpKernelConstruction* ctx, int num_spatial_dims, in ConvOp() function in tensorflow::__anon7c19f5bd0111::ConvOp
65 TF_DISALLOW_COPY_AND_ASSIGN(ConvOp);
68 class Conv2DOp : public ConvOp {
71 : ConvOp(ctx, /*num_spatial_dims=*/2, /*depthwise=*/false) {} in Conv2DOp()
76 class Conv3DOp : public ConvOp {
79 : ConvOp(ctx, /*num_spatial_dims=*/3, /*depthwise=*/false) {} in Conv3DOp()
84 class DepthwiseConv2DOp : public ConvOp {
87 : ConvOp(ctx, /*num_spatial_dims=*/2, /*depthwise=*/true) {} in DepthwiseConv2DOp()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DGeneralization.cpp93 : public LinalgGeneralizationPattern<GeneralizeConvOp, linalg::ConvOp> {
96 linalg::GenericOp createGenericOp(linalg::ConvOp, OpBuilder &rewriter) const;
149 linalg::GenericOp GeneralizeConvOp::createGenericOp(linalg::ConvOp convOp, in createGenericOp()
DVectorization.cpp533 template <class ConvOp, int N>
534 LogicalResult ConvOpVectorization<ConvOp, N>::matchAndRewrite( in matchAndRewrite()
535 ConvOp op, PatternRewriter &rewriter) const { in matchAndRewrite()
603 template <typename ConvOp, unsigned N>
615 tilingPatterns.insert<LinalgTilingPattern<ConvOp>>( in populateVectorizationPatterns()
619 promotionPatterns.insert<LinalgPromotionPattern<ConvOp>>( in populateVectorizationPatterns()
629 vectorizationPatterns.insert<ConvOpVectorization<ConvOp, N>>(context, mask); in populateVectorizationPatterns()
DLoops.cpp319 Attribute getPadValueAttr<ConvOp>(Type type) { in getPadValueAttr()
327 static bool hasPadding(ConvOp convOp) { in hasPadding()
336 static void emitScalarImplementation(ArrayRef<Value> allIvs, ConvOp convOp) { in emitScalarImplementation()
358 Value padValue = std_constant(type, getPadValueAttr<ConvOp>(type)); in emitScalarImplementation()
528 .Case<CopyOp, FillOp, ConvOp, PoolingMaxOp, PoolingMinOp, in linalgOpToLoopsImpl()
DFusion.cpp341 if (auto convOp = dyn_cast<linalg::ConvOp>(producer.getOperation())) { in isFusableInto()
346 if (auto convOp = dyn_cast<linalg::ConvOp>(consumer.getOperation())) { in isFusableInto()
DPromotion.cpp312 if (auto convOp = dyn_cast<linalg::ConvOp>(op.getOperation())) { in promoteSubViews()
DTiling.cpp327 if (auto convOp = dyn_cast<linalg::ConvOp>(op.getOperation())) { in tileLinalgOpImpl()
/external/llvm-project/mlir/include/mlir/Dialect/Linalg/Transforms/
DTransforms.h757 template <typename ConvOp, int N>
758 class ConvOpVectorization : public OpRewritePattern<ConvOp> {
759 using OpRewritePattern<ConvOp>::OpRewritePattern;
764 : OpRewritePattern<ConvOp>(context) { in ConvOpVectorization()
769 LogicalResult matchAndRewrite(ConvOp minOp,
/external/llvm-project/mlir/include/mlir/Dialect/Linalg/IR/
DLinalgOps.h35 class ConvOp; variable
DLinalgStructuredOps.td279 def ConvOp : PoolingBase_Op<"conv", [
281 // Despite having reductions, this manually defined ConvOp may only take
400 // Despite having reductions, this manually defined ConvOp may only take
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Dmap_hlo_to_lhlo_op.h50 MAP_HLO_TO_LHLO(ConvOp);
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlegalize_hlo.cc60 class ConvertConvOp : public OpConversionPattern<mhlo::ConvOp> {
65 mhlo::ConvOp conv_op, ArrayRef<Value> args, in matchAndRewrite()
136 bool IsSamePadding(mhlo::ConvOp conv_op, int num_spatial_dims, in IsSamePadding()
158 void CreateConvOp(mhlo::ConvOp conv_op, ArrayRef<int64_t> strides, in CreateConvOp()
197 bool IsSupportedConvOp(mhlo::ConvOp conv_op) const { in IsSupportedConvOp()
/external/llvm-project/mlir/test/lib/Transforms/
DTestLinalgFusionTransforms.cpp42 LinalgTileAndFusePattern<ConvOp>>( in fillFusionPatterns()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_utils.cc359 } else if (isa<mlir::mhlo::ConvOp, mlir::lmhlo::ConvOp>(op)) { in MhloToHloOpcode()
Dhlo_function_importer.cc722 MakeAndReturn(ConvOp); in ImportInstructionImpl()
Dmlir_hlo_to_hlo.cc712 LogicalResult ExportXlaOp(mlir::mhlo::ConvOp op, OpLoweringContext ctx) { in ExportXlaOp()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dlegalize_to_linalg.cc262 struct ConvToLinalgConverter : public OpConversionPattern<lmhlo::ConvOp> {
264 using OpConversionPattern<lmhlo::ConvOp>::OpConversionPattern;
269 lmhlo::ConvOp op, ArrayRef<Value> args, in matchAndRewrite()
354 rewriter.replaceOpWithNewOp<linalg::ConvOp>( in matchAndRewrite()
Dhlo_legalize_to_lhlo.cc654 HloToLhloOpConverter<mhlo::ConvOp>, in populateHLOToLHLOConversionPattern()
/external/llvm-project/mlir/include/mlir/Dialect/Tosa/IR/
DTosaOpBase.td75 // ConvOp and MatMulOp QuantizationAttrs follow a common design semantic where
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/
DLinalgOps.cpp1224 void ConvOp::getEffects( in getEffects()
1235 static LogicalResult verify(ConvOp op) { in verify()
1383 INSTANTIATE_WEIGHTED_POOLING_INPUT_INDEX(ConvOp)
1835 CANONICALIZERS_AND_FOLDERS(ConvOp)
/external/tensorflow/tensorflow/compiler/mlir/xla/ir/
Dmlir_hlo_builder.cc106 auto op = builder_.create<mlir::mhlo::ConvOp>( in ConvGeneralDilatedInternal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp2575 SDValue ConvOp = WideRes; in tryEXTEND() local
2577 ConvOp = addExtOrTrunc(WideRes, Input32Bit ? ExtOrTruncConversion::Ext : in tryEXTEND()
2579 return ConvOp.getNode(); in tryEXTEND()
DPPCISelLowering.cpp7955 unsigned ConvOp = Signed ? (SinglePrec ? PPCISD::FCFIDS : PPCISD::FCFID) : in LowerINT_TO_FPDirectMove() local
7961 FP = DAG.getNode(ConvOp, dl, SinglePrec ? MVT::f32 : MVT::f64, FP); in LowerINT_TO_FPDirectMove()
7965 FP = DAG.getNode(ConvOp, dl, SinglePrec ? MVT::f32 : MVT::f64, FP); in LowerINT_TO_FPDirectMove()
13357 unsigned ConvOp = Signed ? in combineFPToIntToFP() local
13373 return DAG.getNode(ConvOp, dl, DstDouble ? MVT::f64 : MVT::f32, Ext); in combineFPToIntToFP()
13375 return DAG.getNode(ConvOp, dl, DstDouble ? MVT::f64 : MVT::f32, Ld); in combineFPToIntToFP()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf.cc1279 rewriter.replaceOpWithNewOp<ConvOp>(op, op.getType(), operands, in matchAndRewrite()
4237 Value result = rewriter.create<ConvOp>( in matchAndRewrite()
4442 Value result = rewriter.create<ConvOp>( in matchAndRewrite()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp2535 SDValue ConvOp = WideRes; in tryEXTEND() local
2537 ConvOp = addExtOrTrunc(WideRes, Input32Bit ? ExtOrTruncConversion::Ext : in tryEXTEND()
2539 return ConvOp.getNode(); in tryEXTEND()

12