Commit Graph

4 Commits

Author SHA1 Message Date
Jared Duke
5ff33fb063 Reland "Add TfLite flex delegate with support for TF ops"
Create a org.tensorflow.lite.flex.FlexDelegate class which
wraps its native counterpart for using TensorFlow ops in
TensorFlow Lite. Clients can either instantiate this delegate
directly when using ops that require TF ops, or add it as a
dependency to their project, and it will be instantiated when
necessary.

Also introduce a tensorflow-lite-select-tf-ops.aar target, which
is a plugin that should be used alongside tensorflow-lite.aar. The
existing tensorflow-lite-with-select-tf-ops, which is a monolithic
build that includes all of core TFLite, is now deprecated and will
soon be removed.

This work is in anticipation of pushing prebuilt
tensorflow-lite-select-tf-ops libraries to the TensorFlow Lite
Bintray repository.

PiperOrigin-RevId: 269449576
2019-09-16 17:54:37 -07:00
Jared Duke
82d067e1fa Automated rollback of commit 4250bf575c
PiperOrigin-RevId: 265549668
2019-08-26 15:32:07 -07:00
Jared Duke
4250bf575c Add TfLite flex delegate with support for TF ops
Create a org.tensorflow.lite.flex.FlexDelegate class which
wraps its native counterpart for using TensorFlow ops in
TensorFlow Lite. Clients can either instantiate this delegate
directly when using ops that require TF ops, or add it as a
dependency to their project, and it will be instantiated when
necessary.

Also introduce a tensorflow-lite-select-tf-ops.aar target, which
is a plugin that should be used alongside tensorflow-lite.aar. The
existing tensorflow-lite-with-select-tf-ops, which is a monolithic
build that includes all of core TFLite, is now deprecated and will
soon be removed.

This work is in anticipation of pushing prebuilt
tensorflow-lite-select-tf-ops libraries to the TensorFlow Lite
Bintray repository.

PiperOrigin-RevId: 264948003
2019-08-22 18:51:39 -07:00
Austin Anderson
61c6c84964 Migrate TensorFlow Lite out of tensorflow/contrib
This change moves //tensorflow/contrib/lite to //tensorflow/lite in preparation
for TensorFlow 2.0's deprecation of contrib/. If you refer to TF Lite build
targets or headers, you will need to update them manually. If you use TF Lite
from the TensorFlow python package, "tf.contrib.lite" now points to "tf.lite".
Please update your imports as soon as possible.

For more details, see https://groups.google.com/a/tensorflow.org/forum/#!topic/tflite/iIIXOTOFvwQ

@angersson and @aselle are conducting this migration. Please contact them if
you have any further questions.

PiperOrigin-RevId: 219536476
2018-10-31 14:20:28 -07:00