Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track 12-16 #61

Open
wants to merge 17 commits into
base: 12-16-orig
Choose a base branch
from
Prev Previous commit
Next Next commit
save
  • Loading branch information
MarisaKirisame committed Mar 1, 2021
commit 620d11a829f75937e9cf35a2a736b54f51c18c9d
6 changes: 3 additions & 3 deletions aten/src/ATen/CheckpointTensorImpl.cpp
Original file line number Diff line number Diff line change
@@ -574,8 +574,8 @@ MakeRawResult make_raw(const rematerialize_function_t& remat_f,
Tensors raw_inputs = uncheckpoint(inputs);
time_t pre = std::chrono::system_clock::now();
malloc_evict_time_ = duration_t::zero();
Tensors raw_outputs = remat_f(raw_inputs);
/* loop:
Tensors raw_outputs;
loop:
try {
raw_outputs = remat_f(raw_inputs);
} catch (const c10::Error& e) {
@@ -585,7 +585,7 @@ MakeRawResult make_raw(const rematerialize_function_t& remat_f,
} else {
goto loop;
}
}*/
}
time_t post = std::chrono::system_clock::now();
pool.auto_evict();
auto compute_time = post - pre - malloc_evict_time_;