API Documentation
Stay organized with collections
Save and categorize content based on your preferences.
TensorFlow has APIs available in several languages both for constructing and
executing a TensorFlow graph. The Python API is at present the most complete
and the easiest to use, but other language APIs may be easier to integrate
into projects and may offer some performance advantages in graph execution.
A word of caution: the APIs in languages other than Python are not yet
covered by the API stability promises.
We encourage the community to develop and maintain support for other languages
with the
approach recommended by the TensorFlow maintainers.
For example, see the bindings for:
We also provide the C++ API reference for TensorFlow Serving:
There are also some archived or unsupported language bindings:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-09-30 UTC.
[null,null,["Last updated 2024-09-30 UTC."],[],[],null,["# API Documentation\n\n\u003cbr /\u003e\n\nTensorFlow has APIs available in several languages both for constructing and\nexecuting a TensorFlow graph. The Python API is at present the most complete\nand the easiest to use, but other language APIs may be easier to integrate\ninto projects and may offer some performance advantages in graph execution.\n\nA word of caution: the APIs in languages other than Python are not yet\ncovered by the [API stability promises](https://www.tensorflow.org/guide/versions).\n\n- [Python](https://www.tensorflow.org/api_docs/python/)\n- [JavaScript](https://js.tensorflow.org/api/latest/)\n- [C++](https://www.tensorflow.org/api_docs/cc/)\n- [Java](https://www.tensorflow.org/api_docs/java/reference/org/tensorflow/package-summary)\n\nWe encourage the community to develop and maintain support for other languages\nwith the\n[approach recommended by the TensorFlow maintainers](https://github.com/tensorflow/docs/blob/master/site/en/r1/guide/extend/bindings.md).\nFor example, see the bindings for:\n\n- C#: [TensorFlowSharp](https://github.com/migueldeicaza/TensorFlowSharp) and [TensorFlow.NET](https://github.com/SciSharp/TensorFlow.NET),\n- [Haskell](https://github.com/tensorflow/haskell),\n- [Julia](https://github.com/malmaud/TensorFlow.jl),\n- [MATLAB](https://github.com/asteinh/tensorflow.m),\n- [R](https://github.com/rstudio/tensorflow),\n- [Ruby](https://github.com/somaticio/tensorflow.rb),\n- [Rust](https://github.com/tensorflow/rust),\n- [Scala](https://github.com/eaplatanios/tensorflow_scala), and\n- [Perl](https://github.com/EntropyOrg/perl-AI-TensorFlow-Libtensorflow).\n\nWe also provide the C++ API reference for TensorFlow Serving:\n\n- [TensorFlow Serving](https://www.tensorflow.org/tfx/guide/serving)\n\nThere are also some archived or unsupported language bindings:\n\n- [Go](https://pkg.go.dev/github.com/tensorflow/tensorflow/tensorflow/go)"]]