- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IfRegionOp (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
class FoldConstantIfRegionOp : public OpRewritePattern<TF::IfRegionOp> { public: explicit FoldConstantIfRegionOp(MLIRContext* context) : OpRewritePattern<TF::IfRegionOp>(context) {} LogicalResult matchAndRewrite(TF::IfRegionOp op, PatternRewriter& rewriter) const override; }; LogicalResult FoldConstantIfRegionOp::matchAndRewrite( TF::IfRegionOp op, PatternRewriter& rewriter) const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
// function result types. bool InferShapeForIf(IfOp op); // Infers the shape IfRegion outputs based on the shapes of the then and else // yields. bool InferShapeForIfRegion(IfRegionOp op); // Infers the shape CaseOp outputs based on the shapes of branch function // result types. bool InferShapeForCase(CaseOp op); // Infers the shape CaseRegion outputs based on the shapes of the branch
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
LogicalResult matchAndRewrite( mhlo::IfOp op, OpAdaptor adaptor, ConversionPatternRewriter& rewriter) const final { // HLO IfOp currently doesn't support stateless auto new_op = rewriter.create<TF::IfRegionOp>( op.getLoc(), op->getResultTypes(), op.getPred(), /*is_stateless=*/false, /*_then_func_name=*/nullptr, /*_else_func_name=*/nullptr); new_op.getThenBranch().takeBody(op.getTrueBranch());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0)