Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ShouldCompileCluster (0.32 sec)

  1. tensorflow/compiler/jit/device_compilation_profiler_test.cc

      NameAttrList function;
      function.set_name("TestFunc");
    
      EXPECT_TRUE(
          profiler->ShouldCompileCluster(function, DeviceCompileMode::kAsync, 0));
      EXPECT_TRUE(
          profiler->ShouldCompileCluster(function, DeviceCompileMode::kLazy, 0));
      EXPECT_TRUE(
          profiler->ShouldCompileCluster(function, DeviceCompileMode::kStrict, 0));
    }
    
    TEST(DeviceCompilationProfilerTest, ShouldCompileClusterFirstExecution) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 22 21:06:33 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/device_compiler_test.cc

      XlaCompiler::Options options = GetDefaultXlaOptions();
    
      NameAttrList fn;
      fn.set_name("foo");
    
      // Using a mock here since it's difficult to have ShouldCompileCluster()
      // return false.
      EXPECT_CALL(*mock_profiler_,
                  ShouldCompileCluster(_, DeviceCompileMode::kLazy, 1))
          .WillOnce(Return(false));
    
      TF_EXPECT_OK(xla_device_compiler_->CompileIfNeeded(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/device_compilation_profiler.h

      // Determines whether the cluster should be compiled. Creates and inserts an
      // entry into stats (also calls `RegisterExecution`) for `function` if it
      // doesn't already exist.
      virtual bool ShouldCompileCluster(const NameAttrList& function,
                                        DeviceCompileMode compile_mode,
                                        int64_t current_request_count);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_compilation_profiler.cc

      jit_compilation_activity.set_used_persistent_cache(used_persistent_cache);
      return BroadcastXlaActivity(std::move(jit_compilation_activity));
    }
    
    bool DeviceCompilationProfiler::ShouldCompileCluster(
        const NameAttrList& function, DeviceCompileMode compile_mode,
        int64_t current_request_count) {
      std::optional<int64_t> compile_threshold;
      if (compile_mode == DeviceCompileMode::kLazy) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/device_compiler.h

        return errors::Internal("XLA compilation disabled");
      }
    
      if (state == DeviceCompileState::kUncompiled) {
        XLA_SCOPED_LOGGING_TIMER("Compilation of XLA executable");
        if (!profiler->ShouldCompileCluster(function, compile_mode,
                                            current_request_count)) {
          VLOG(2) << "Not compiling for signature: " << human_signature;
          return absl::OkStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass.cc

      // Populates `clusters_`.
      Status BuildInitialClusterSet();
    
      absl::StatusOr<bool> ShouldCompileClusterImpl(const Cluster& cluster);
    
      absl::StatusOr<bool> ShouldCompileCluster(const Cluster& cluster);
    
      absl::StatusOr<bool> ClusteringWillIntroduceInterDeviceDependency(
          const Cluster& from, const Cluster& to);
    
      bool ShouldCompile(bool is_xla_compile_attr_true,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top