aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/gpu/partition_assignment.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/gpu/partition_assignment.cc')
-rw-r--r--tensorflow/compiler/xla/service/gpu/partition_assignment.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/tensorflow/compiler/xla/service/gpu/partition_assignment.cc b/tensorflow/compiler/xla/service/gpu/partition_assignment.cc
index c927c5ee16..cf9f102d31 100644
--- a/tensorflow/compiler/xla/service/gpu/partition_assignment.cc
+++ b/tensorflow/compiler/xla/service/gpu/partition_assignment.cc
@@ -19,6 +19,7 @@ limitations under the License.
#include <string>
#include "absl/memory/memory.h"
+#include "absl/strings/str_format.h"
#include "tensorflow/compiler/xla/map_util.h"
#include "tensorflow/compiler/xla/service/hlo_computation.h"
#include "tensorflow/compiler/xla/service/hlo_opcode.h"
@@ -26,7 +27,6 @@ limitations under the License.
#include "tensorflow/compiler/xla/types.h"
#include "tensorflow/compiler/xla/util.h"
#include "tensorflow/core/lib/core/bits.h"
-#include "tensorflow/core/lib/strings/stringprintf.h"
#include "tensorflow/core/platform/logging.h"
namespace xla {
@@ -34,9 +34,8 @@ namespace gpu {
std::ostream& operator<<(std::ostream& out,
const LaunchDimensions& launch_dims) {
- out << tensorflow::strings::Printf("[block: %lld, thread: %lld]",
- launch_dims.block_count(),
- launch_dims.threads_per_block());
+ out << absl::StrFormat("[block: %d, thread: %d]", launch_dims.block_count(),
+ launch_dims.threads_per_block());
return out;
}
@@ -91,9 +90,9 @@ LaunchDimensions CalculateLaunchDimensions(
}
int64 block_count = CeilOfRatio(num_elements, threads_per_block);
- VLOG(2) << tensorflow::strings::Printf(
+ VLOG(2) << absl::StrFormat(
"Initialized the block count to ceil(# of elements / threads per "
- "block) = ceil(%lld/%lld) = %lld",
+ "block) = ceil(%d/%d) = %d",
num_elements, threads_per_block, block_count);
return LaunchDimensions(block_count, threads_per_block);