• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
3 
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 
8     http://www.apache.org/licenses/LICENSE-2.0
9 
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 ==============================================================================*/
16 #ifndef TENSORFLOW_CORE_KERNELS_RESHAPE_UTIL_H_
17 #define TENSORFLOW_CORE_KERNELS_RESHAPE_UTIL_H_
18 
19 #include "tensorflow/core/framework/tensor.h"
20 #include "tensorflow/core/lib/core/status.h"
21 
22 namespace tensorflow {
23 
24 // Reshapes the input indices and input shape to the target shape.
25 void Reshape(OpKernelContext *context, const Tensor &input_indices_in,
26              const Tensor &input_shape_in, const Tensor &target_shape_in,
27              int output_indices_idx, int output_shape_idx);
28 
29 }  // namespace tensorflow
30 
31 #endif  // TENSORFLOW_CORE_KERNELS_RESHAPE_UTIL_H_
32