mirror of https://github.com/microsoft/vcpkg.git
[libtorch] Include `<chrono>` for `high_resolution_clock` (#43234)
This commit is contained in:
parent
3ebdcf4179
commit
e1118ae492
|
|
@ -0,0 +1,11 @@
|
|||
diff --git a/torch/csrc/jit/runtime/logging.h b/torch/csrc/jit/runtime/logging.h
|
||||
index 5499ecf..269168e 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>
|
||||
|
|
@ -39,6 +39,7 @@ vcpkg_from_github(
|
|||
fix-aten-cutlass.patch
|
||||
fix-build-error-with-fmt11.patch
|
||||
no-abs-path.patch
|
||||
add-include-chrono.patch
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/caffe2/core/macros.h") # We must use generated header files
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "libtorch",
|
||||
"version": "2.1.2",
|
||||
"port-version": 9,
|
||||
"port-version": 10,
|
||||
"description": "Tensors and Dynamic neural networks in Python with strong GPU acceleration",
|
||||
"homepage": "https://pytorch.org/",
|
||||
"license": null,
|
||||
|
|
|
|||
|
|
@ -5230,7 +5230,7 @@
|
|||
},
|
||||
"libtorch": {
|
||||
"baseline": "2.1.2",
|
||||
"port-version": 9
|
||||
"port-version": 10
|
||||
},
|
||||
"libtorrent": {
|
||||
"baseline": "2.0.10",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7307f8c37b266aeb61d83e069740e75cff863bf6",
|
||||
"version": "2.1.2",
|
||||
"port-version": 10
|
||||
},
|
||||
{
|
||||
"git-tree": "0a4d67bf0f603494ff7ce3e51587513a1df295fe",
|
||||
"version": "2.1.2",
|
||||
|
|
|
|||
Loading…
Reference in New Issue