diff options
author | fo40225 <fo40225@hotmail.com> | 2018-02-11 20:48:10 +0800 |
---|---|---|
committer | fo40225 <fo40225@hotmail.com> | 2018-02-11 20:49:47 +0800 |
commit | 9832df4e7acf093e2fccbb84c5362ee201ea4321 (patch) | |
tree | 6b43fcfc5c9f4082e1e9307fcd2378b0b0bb884d /tensorflow/core/kernels/quantized_resize_bilinear_op.cc | |
parent | f06b0f8057dfdffbb0179eac12c53ea2cc5042b8 (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.cc | 4 |
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); |