Does TensorFlow C++ API have the python Linspace equivalent

In the processing of porting on of the TensorFlow python tutorials to C++ API and require Linspace equivalent. Currently I handcrafted one but would like to use the API functions.

Thanks PMcG

Hi @PMcG ,

In the TensorFlow C++ API, there isn’t a direct equivalent to the linspace function provided in the Python API. However, you can achieve similar functionality using the tf::linspace function.

You can refer to this documentation for more details.

ThanK You .