aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/quantized_resize_bilinear_op.cc
diff options
context:
space:
mode:
authorGravatar fo40225 <fo40225@hotmail.com>2018-02-11 20:48:10 +0800
committerGravatar fo40225 <fo40225@hotmail.com>2018-02-11 20:49:47 +0800
commit9832df4e7acf093e2fccbb84c5362ee201ea4321 (patch)
tree6b43fcfc5c9f4082e1e9307fcd2378b0b0bb884d /tensorflow/core/kernels/quantized_resize_bilinear_op.cc
parentf06b0f8057dfdffbb0179eac12c53ea2cc5042b8 (diff)
fix type name is not allowed
Diffstat (limited to 'tensorflow/core/kernels/quantized_resize_bilinear_op.cc')
-rw-r--r--tensorflow/core/kernels/quantized_resize_bilinear_op.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/kernels/quantized_resize_bilinear_op.cc b/tensorflow/core/kernels/quantized_resize_bilinear_op.cc
index fb2faede2f..9a1dcd0d49 100644
--- a/tensorflow/core/kernels/quantized_resize_bilinear_op.cc
+++ b/tensorflow/core/kernels/quantized_resize_bilinear_op.cc
@@ -697,8 +697,8 @@ class QuantizedResizeBilinearOp : public OpKernel {
// Return if the output is empty.
if (st.output->NumElements() == 0) return;
- typename TTypes<T, 4>::ConstTensor image_data = input.tensor<T, 4>();
- typename TTypes<T, 4>::Tensor output_data = st.output->tensor<T, 4>();
+ typename TTypes<T, 4>::ConstTensor image_data(input.tensor<T, 4>());
+ typename TTypes<T, 4>::Tensor output_data(st.output->tensor<T, 4>());
ResizeBilinear<T>(image_data, st.height_scale, st.width_scale, in_min,
in_max, &output_data);