aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/gpu/pad_insertion.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-19 10:48:05 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-19 10:54:20 -0700
commit46737e4e81314f7482bfd6a710f126a27f5d7975 (patch)
tree5e441f99cfe123f3b7a70ffcb79f7b308a5e04c8 /tensorflow/compiler/xla/service/gpu/pad_insertion.cc
parent09d090282667e28ed04547ee0dcf1b6faba75659 (diff)
Remove class xla::LiteralUtil. NFC (mind-numbingly so).
This patch removes class xla::LiteralUtil and rewrites every call to use class xla::Literal instead. PiperOrigin-RevId: 159446373
Diffstat (limited to 'tensorflow/compiler/xla/service/gpu/pad_insertion.cc')
-rw-r--r--tensorflow/compiler/xla/service/gpu/pad_insertion.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/compiler/xla/service/gpu/pad_insertion.cc b/tensorflow/compiler/xla/service/gpu/pad_insertion.cc
index c645e84aa4..4e130de311 100644
--- a/tensorflow/compiler/xla/service/gpu/pad_insertion.cc
+++ b/tensorflow/compiler/xla/service/gpu/pad_insertion.cc
@@ -61,7 +61,7 @@ HloInstruction* MaybePaddedAndSlicedInput(
PrimitiveType element_type = input->shape().element_type();
HloInstruction* padding =
computation->AddInstruction(HloInstruction::CreateConstant(
- MakeUnique<Literal>(LiteralUtil::Zero(element_type))));
+ MakeUnique<Literal>(Literal::Zero(element_type))));
input = computation->AddInstruction(HloInstruction::CreatePad(
ShapeInference::InferPadShape(
/*operand_shape=*/input->shape(),
@@ -126,7 +126,7 @@ HloInstruction* MaybePaddedKernel(const Window& conv_window,
PrimitiveType element_type = kernel->shape().element_type();
HloInstruction* padding =
computation->AddInstruction(HloInstruction::CreateConstant(
- MakeUnique<Literal>(LiteralUtil::Zero(element_type))));
+ MakeUnique<Literal>(Literal::Zero(element_type))));
return computation->AddInstruction(HloInstruction::CreatePad(
ShapeInference::InferPadShape(
/*operand_shape=*/kernel->shape(),
@@ -241,9 +241,9 @@ bool PadInsertion::CanonicalizeBackwardFilterConvolution(
// Create a new backward convolution replacing the old one.
HloComputation* computation = backward_conv->parent();
HloInstruction* output = backward_conv->mutable_operand(1);
- HloInstruction* padding = computation->AddInstruction(
- HloInstruction::CreateConstant(MakeUnique<Literal>(
- LiteralUtil::Zero(input->shape().element_type()))));
+ HloInstruction* padding =
+ computation->AddInstruction(HloInstruction::CreateConstant(
+ MakeUnique<Literal>(Literal::Zero(input->shape().element_type()))));
HloInstruction* padded_input =
computation->AddInstruction(HloInstruction::CreatePad(
ShapeInference::InferPadShape(input->shape(), padding->shape(),