Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CreateGuaranteeAllFuncsOneUsePass (0.42 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc

      pm.addNestedPass<FuncOp>(
          mlir::CreateExecutorDialectToFunctionalConversionPass());
      // Guarantee all functions have one use, which enables more exact shape
      // inference.
      pm.addPass(mlir::TF::CreateGuaranteeAllFuncsOneUsePass());
      // Run shape inference so that tf_executor/tf_device ops created later will
      // likely to inherit more concrete types.
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 16:09:14 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/func_attributes_multiple_callers.mlir

    // Checks that the ops' function attribute references the original function name
    // `funcB` for `funcB_renamed` after the module is lowered to TFRT. Note that,
    // `funcB_renamed` are called twice, so `CreateGuaranteeAllFuncsOneUsePass` will
    // make a replicaion of `funcB_renamed` with a different name.
    
    module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 567 : i32}} {
      // CHECK-LABEL: @funcA
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 17 20:57:36 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc

              }
            }
          }
        } while (made_changes);
    
        return success();
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateGuaranteeAllFuncsOneUsePass() {
      return std::make_unique<GuaranteeAllFuncsOneUse>();
    }
    
    }  // namespace TF
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf.cc

      pm.addNestedPass<FuncOp>(
          mlir::TF::CreateCanonicalizeCompileAndReplicateAttributesPass());
      // Guarantee all functions have one use, which enables more exact shape
      // inference.
      pm.addPass(mlir::TF::CreateGuaranteeAllFuncsOneUsePass());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
      // For V1 compatibility, we process a module where the graph does not have
      // feeds and fetched. We extract first the TPU computation in a submodule,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

      // Add canonicalize pass to remove no-op session initializer pass.
      pass_manager->addPass(mlir::createCanonicalizerPass());
    
      if (pass_config.guarantee_all_funcs_one_use) {
        pass_manager->addPass(mlir::TF::CreateGuaranteeAllFuncsOneUsePass());
      }
      if (pass_config.shape_inference) {
        pass_manager->addPass(mlir::TF::CreateTFShapeInferencePass());
      }
    
      // Keep this pass after the shape inference pass, which couldn't do shape
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    std::unique_ptr<OperationPass<func::FuncOp>> CreateLayoutAssignmentPass();
    
    // Guarantee that all FuncOp's have a single use.
    std::unique_ptr<OperationPass<ModuleOp>> CreateGuaranteeAllFuncsOneUsePass();
    
    // Optional pass which will unroll BatchMatMul and use only MatMul
    std::unique_ptr<OperationPass<func::FuncOp>> CreateUnrollBatchMatMulPassPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      // and can do with just one pass after the shape inference.
      pm.addPass(mlir::createSCCPPass());
      // Guarantee all functions have one use, which enables shape inference.
      pm.addPass(mlir::TF::CreateGuaranteeAllFuncsOneUsePass());
      // Run shape inference pass before tensorlist decomposition to get buffer
      // shape of uninitialized TensorLists.
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    }
    
    def GuaranteeAllFuncsOneUsePass : Pass<"tf-guarantee-all-funcs-one-use", "ModuleOp"> {
      let summary = "Guarantee all FuncOp's have only a single use.";
      let constructor = "TF::CreateGuaranteeAllFuncsOneUsePass()";
    }
    
    def TPUColocateCompositeResourceOpsPass : Pass<"tf-tpu-colocate-composite-resource-ops", "mlir::func::FuncOp"> {
      let summary = "Colocate resource with composite device assignment to TPU device.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
Back to top