- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetPeakMemory (1.26 sec)
-
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer_test.cc
EXPECT_THAT(r_.GetPeakMemory(), FieldsAre(Eq(2), Eq(4))); r_.AddUse(/*ioperation=*/2, /*itensor=*/2); EXPECT_THAT(r_.GetMemProfile(), ElementsAre(0, 0, 4, 0, 0, 0)); EXPECT_THAT(r_.GetPeakMemory(), FieldsAre(Eq(2), Eq(4))); r_.AddUse(/*ioperation=*/4, /*itensor=*/2); EXPECT_THAT(r_.GetMemProfile(), ElementsAre(0, 0, 4, 4, 4, 0)); EXPECT_THAT(r_.GetPeakMemory(), FieldsAre(Eq(4), Eq(4)));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 19.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc
} std::tuple<Rematerializer::SizeT, Rematerializer::RematSpec> Rematerializer::FindBestRemat(const SizeT min_savings, const int begin_len, const int end_len) const { const auto peak = GetPeakMemory(); SizeT best_peak_mem = peak.size; RematSpec best_remat = {}; for (int len = begin_len; len < end_len; ++len) { std::vector<std::tuple<SizeT, int, int>> pre_screen;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 13.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h
// Gives the peak memory location and size after inserting operations // according to `remat` (but doesn't actually insert them.) Ties are broken // towards later locations. `remat` must be valid (see above). MemSpec GetPeakMemory(const RematSpec& remat = {}) const; // Gives memory profile after inserting operations according to `remat` (but // doesn't actually insert them). `remat` must be valid (see above).
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 12K bytes - Viewed (0)