Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for GraphOptimizationPassOptions (0.3 sec)

  1. tensorflow/compiler/jit/xla_cluster_util.h

    bool HasResourceInputOrOutput(const Node& node);
    
    // Determines the global jit level based on GraphOptimizationPassOptions,
    // --tf_xla_auto_jit and whether the graph is a single GPU graph.
    OptimizerOptions::GlobalJitLevel GetGlobalJitLevelForGraph(
        const GraphOptimizationPassOptions& options);
    
    // Returns true if `g` is a single-GPU graph.  A single-GPU graph uses exactly
    // one GPU (and any number of CPUs).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

                                   FunctionLibraryDefinition* flib_def,
                                   std::unique_ptr<Graph>* result) {
      auto graph = std::make_unique<Graph>(OpRegistry::Global());
      GraphOptimizationPassOptions options;
      SessionOptions session_options;
      session_options.env = Env::Default();
      options.graph = &graph;
      options.session_options = &session_options;
      options.flib_def = flib_def;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/force_xla_constants_on_host_pass.cc

    #include "tensorflow/compiler/jit/defs.h"
    #include "tensorflow/core/common_runtime/optimization_registry.h"
    
    namespace tensorflow {
    
    Status ForceXlaConstantsOnHostPass::Run(
        const GraphOptimizationPassOptions& options) {
      Graph* graph = options.graph->get();
    
      OptimizerOptions opts;
      auto pflr = std::make_unique<ProcessFunctionLibraryRuntime>(
          nullptr, options.session_options->env, /*config=*/nullptr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/encapsulate_xla_computations_pass.h

    namespace tensorflow {
    
    // Encapsulates nodes marked with the _xla_compile_id attribute into
    // XlaLaunch operators.
    class EncapsulateXlaComputationsPass : public GraphOptimizationPass {
     public:
      Status Run(const GraphOptimizationPassOptions& options) override;
    
      // The following methods are public only for unit tests.
    
      // This pass has two stages:
      // a) first, we call EncapsulateSubgraphsPass to encapsulate all nodes
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/clone_constants_for_better_clustering_test.cc

      SessionOptions session_options;
      session_options.config.mutable_graph_options()
          ->mutable_optimizer_options()
          ->set_global_jit_level(OptimizerOptions::ON_2);
      GraphOptimizationPassOptions options;
      options.graph = &graph;
      options.session_options = &session_options;
    
      // Scope::ToGraph seems to drop assigned devices, probably because it goes
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/cluster_scoping_pass.cc

      if (global_jit_level_ == OptimizerOptions::OFF) {
        return absl::OkStatus();
      }
    
      return ScopingForPipelineStages();
    }
    }  // namespace
    
    Status ClusterScopingPass::Run(const GraphOptimizationPassOptions& options) {
      Graph* graph = options.graph->get();
    
      return ClusterScopingPassImpl{graph, GetGlobalJitLevelForGraph(options)}
          .Run();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/clone_constants_for_better_clustering.cc

      for (Node* n : nodes) {
        TF_RETURN_IF_ERROR(CloneSmallConstantInputs(name_set, n));
      }
      return absl::OkStatus();
    }
    
    Status CloneConstantsForBetterClusteringPass::Run(
        const GraphOptimizationPassOptions& options) {
      if (GetGlobalJitLevelForGraph(options) == OptimizerOptions::OFF) {
        return absl::OkStatus();
      }
    
      Graph* g = options.graph->get();
    
      if (VLOG_IS_ON(1)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

        return signalPassFailure();
      }
    
      // Run each of the passes that were selected.
      GraphConstructorOptions opts;
      opts.allow_internal_ops = true;
      opts.expect_device_spec = false;
    
      GraphOptimizationPassOptions options;
      SessionOptions sess_options;
      options.graph = &graph;
      options.flib_def = &flib_def;
      options.session_options = &sess_options;
    
      for (auto pass : passes_) {
        assert(pass != nullptr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top