mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Use 2-arg TraceMe constructor to prevent unnecessary StrCat computation when
tracing is disabled. PiperOrigin-RevId: 165722280
This commit is contained in:
committed by
TensorFlower Gardener
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) {
|
||||
|
||||
Reference in New Issue
Block a user