mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 12:20:24 +01:00
Use 2-arg TraceMe constructor to prevent unnecessary StrCat computation when
tracing is disabled. PiperOrigin-RevId: 165722280
This commit is contained in:
parent
7d01f89cc3
commit
107d165d9b
|
|
@ -106,7 +106,7 @@ Status CapturedFunction::Create(
|
|||
Status CapturedFunction::Run(FunctionLibraryRuntime::Options f_opts,
|
||||
gtl::ArraySlice<Tensor> args,
|
||||
std::vector<Tensor>* rets, const string& prefix) {
|
||||
port::Tracing::TraceMe activity(strings::StrCat(prefix, "::Run"));
|
||||
port::Tracing::TraceMe activity(prefix, "::Run");
|
||||
Notification n;
|
||||
Status s;
|
||||
auto done_callback = [&n, &s](Status func_status) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user