Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetCompileStats (0.15 sec)

  1. tensorflow/compiler/jit/device_compilation_profiler_test.cc

      NameAttrList function;
      function.set_name("TestFunc");
    
      for (int i = 0; i < 5; ++i) {
        profiler->RegisterExecution(function);
      }
      TF_ASSERT_OK_AND_ASSIGN(auto stats, profiler->GetCompileStats(function));
      EXPECT_EQ(stats.execution_count, 5);
    }
    
    TEST(DeviceCompilationProfilerTest, RegisterCompilation) {
      DeviceCompilationProfiler* profiler = new DeviceCompilationProfiler();
    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_compilation_profiler.h

              ", is_megamorphic=", is_megamorphic, "}");
        }
      };
    
      // Returns the compilation statistics for the given cluster.
      absl::StatusOr<ClusterCompileStats> GetCompileStats(
          const NameAttrList& function) const;
    
      // Determines whether the cluster should be compiled. Creates and inserts an
      // entry into stats (also calls `RegisterExecution`) for `function` if it
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/device_compilation_profiler.cc

    DeviceCompilationProfiler::~DeviceCompilationProfiler() {
      mutex_lock lock(mu_);
      cluster_compile_stats_.clear();
    }
    
    absl::StatusOr<DeviceCompilationProfiler::ClusterCompileStats>
    DeviceCompilationProfiler::GetCompileStats(const NameAttrList& function) const {
      mutex_lock lock(mu_);
    
      if (auto it = cluster_compile_stats_.find(function.name());
          it != cluster_compile_stats_.end()) {
        return it->second;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top