Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IfRegionOp (0.09 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc

                           destination_block->getArguments());
    }
    
    /// Convert the `tf.IfRegion` op to the `scf.if` op.
    class ConvertIfRegionOp : public OpRewritePattern<IfRegionOp> {
     public:
      using OpRewritePattern<IfRegionOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(IfRegionOp op,
                                    PatternRewriter& rewriter) const override {
        // Creates the `then` or `else` region of the `scf.if` op. Note that
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/mlprogram.cc

      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::TFDevice::CreateDecomposeResourceOpsPass());
      pm.addPass(mlir::TF::CreateNameAnonymousIteratorsPass());
    
      // This will add regions to IfOp/WhileOp (turning them into IfRegionOp
      // and WhileRegionOp), but be aware that those regions will still contain
      // calls.
      pm.addPass(mlir::TF::CreateTFFunctionalControlFlowToRegions());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:39:15 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

      return success();
    }
    
    // Returns true if the op contains a `CalibrationStatisticsSaverOp`.
    bool ContainCalibrationStatisticsSaverOp(Operation* op) {
      // Check the region for CaseRegionOp, IfRegionOp and WhileRegionOp.
      for (Region& region : op->getRegions()) {
        if (!region.getOps<TF::CalibrationStatisticsSaverOp>().empty()) {
          return true;
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top