mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[submodule] update libfmt to tag 9.1.0 (#93219)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/93219 Approved by: https://github.com/malfet, https://github.com/Skylion007, https://github.com/albanD
This commit is contained in:
parent
8ba87fa525
commit
a405c6993f
|
|
@ -258,6 +258,11 @@ local_repository(
|
|||
path = "third_party/fbgemm",
|
||||
)
|
||||
|
||||
local_repository(
|
||||
name = "unused_ftm_bazel",
|
||||
path = "third_party/fmt/support/bazel",
|
||||
)
|
||||
|
||||
local_repository(
|
||||
name = "unused_kineto_dynolog_googletest",
|
||||
path = "third_party/kineto/libkineto/third_party/dynolog/third_party/googletest",
|
||||
|
|
|
|||
2
third_party/fmt
vendored
2
third_party/fmt
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 7bdf0628b1276379886c7f6dda2cef2b3b374f0b
|
||||
Subproject commit a33701196adfad74917046096bf5a2aa0ab0bb50
|
||||
2
third_party/kineto
vendored
2
third_party/kineto
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit a2d16d5f3874910be4b500379258ce9b32b1c44f
|
||||
Subproject commit 2da532c91dee9dc36cccc6088206daa1b69e3966
|
||||
|
|
@ -1,11 +1,10 @@
|
|||
#include <torch/csrc/Exceptions.h>
|
||||
#include <torch/csrc/python_headers.h>
|
||||
|
||||
#include <array>
|
||||
#include <cstdarg>
|
||||
#include <exception>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <torch/csrc/THP.h>
|
||||
|
|
@ -281,16 +280,13 @@ PyWarningHandler::~PyWarningHandler() noexcept(false) {
|
|||
} else {
|
||||
// Lets Python set the source location and puts the C++ warning
|
||||
// location into the message.
|
||||
fmt::memory_buffer buf;
|
||||
fmt::format_to(
|
||||
buf,
|
||||
FMT_STRING("{} (Triggered internally at {}:{}.)"),
|
||||
auto buf = fmt::format(
|
||||
"{} (Triggered internally at {}:{}.)",
|
||||
msg,
|
||||
source_location.file,
|
||||
source_location.line);
|
||||
buf.push_back('\0');
|
||||
result =
|
||||
PyErr_WarnEx(map_warning_to_python_type(warning), buf.data(), 1);
|
||||
PyErr_WarnEx(map_warning_to_python_type(warning), buf.c_str(), 1);
|
||||
}
|
||||
if (result < 0) {
|
||||
if (in_exception_) {
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ std::string makeRPCError(
|
|||
return fmt::format(
|
||||
"{}:{}:{}",
|
||||
torch::distributed::rpc::kRPCErrorPrefix,
|
||||
errorType,
|
||||
static_cast<int>(errorType),
|
||||
rpcErrorStr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user