Muka
Muka

Reputation: 1200

Tensorflow for Dart lang?

I would like to use Tensorflow in Dart Language.

I saw in Tensorflow documentation (https://www.tensorflow.org/api_docs/) that Dart does not cited.

Is there any initiative to develop Tensorflow APIs for Dart Lang?

Upvotes: 7

Views: 2494

Answers (2)

homievk
homievk

Reputation: 23

The TensorFlow Lite Plugin for Flutter is officially available (August, 2023). To use TensorFlow Lite Plugin you have to install it first. Open pubspec.yaml and add tflite to dependencies

dependencies:
  tflite_flutter: ^0.10.3

Then import tflite in main.dart by adding the line

import 'package:tflite_flutter/tflite_flutter.dart';

Upvotes: 2

user269589
user269589

Reputation:

Not officially, although many community activities have begun to implement TensorFlow APIs using gRPC. Native bindings are less popular due to the complexities involved. Even the official C++ API is behind Python currently.

I would suggest first looking at JavaScript if you want to pursue Dart and TensorFlow, otherwise it's not likely you'll have a solution in the near future.

I've been working on a Swift API for TensorFlow, and utilizing the Go API, but even though these are two very popular languages, outside of Python, in the TensorFlow community, the complexity of building the APIs are proving difficult to overcome.

Upvotes: 4

Related Questions