1/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16// This file contains shape utilities to be used by kernels and is not part of
17// the C API. As such, it is subject to change at any time.
18
19#ifndef TENSORFLOW_C_KERNELS_TENSOR_SHAPE_UTILS_H_
20#define TENSORFLOW_C_KERNELS_TENSOR_SHAPE_UTILS_H_
21
22#include <string>
23
24#include "tensorflow/c/tf_tensor.h"
25
26namespace tensorflow {
27
28// The following are utils for the shape of a TF_Tensor type.
29// These functions may later be subsumed by the methods for a
30// TF_TensorShape type.
31
32// Returns a string representation of the TF_Tensor shape.
33std::string ShapeDebugString(TF_Tensor* tensor);
34
35} // namespace tensorflow
36
37#endif // TENSORFLOW_C_KERNELS_TENSOR_SHAPE_UTILS_H_
38