commit | 4d0386ce1cfe0559f9a11fd782e42f851759fe79 | [log] [tgz] |
---|---|---|
author | Kiuk Chung <kiuk@google.com> | Tue Jun 04 02:12:14 2024 +0000 |
committer | PyTorch MergeBot <pytorchmergebot@users.noreply.github.com> | Tue Jun 04 02:12:17 2024 +0000 |
tree | d50e9805a5cf5e5b7a4ae3e27fc3ec9f89d4aa0c | |
parent | ddef7c350f9c63898177ef7923f90d89bd6f41e3 [diff] |
[torch/jit-runtime] Add explicit include of <chrono> to torch/jit/run… (#127779) Added an explicit include to `<chrono>` in `jit/runtime/logging.h` since `std::chrono::time_point<std::chrono::high_resolution_clock>` is directly referenced in the header. Pull Request resolved: https://github.com/pytorch/pytorch/pull/127779 Approved by: https://github.com/albanD
diff --git a/torch/csrc/jit/runtime/logging.h b/torch/csrc/jit/runtime/logging.h index b0b67c6..fda364e 100644 --- a/torch/csrc/jit/runtime/logging.h +++ b/torch/csrc/jit/runtime/logging.h
@@ -1,5 +1,6 @@ #pragma once +#include <chrono> #include <mutex> #include <string> #include <unordered_map>