Commit Graph

17 Commits

Author SHA1 Message Date
Sachin Joglekar
430b00361b Audit and improve TfLiteType checks in kernels
PiperOrigin-RevId: 316720436
Change-Id: I2032e799ee6afa533b932385c2a70f7621f4ac1b
2020-06-16 11:31:02 -07:00
Karim Nosir
2a96849f47 Update source files with used includes.
PiperOrigin-RevId: 316589177
Change-Id: I0aba0ed1cf9ff478e7890fa53a7749bf844bd26d
2020-06-15 18:42:14 -07:00
ANSHUMAN TRIPATHY
7b6d3a0490 Lite: Kernel_util refactored 2019-12-28 11:03:42 +05:30
Jared Duke
4ce6a9b7a4 Rename lite/c/c_api_internal.h to lite/c/common.h
The C types in lite/c/c_api_internal.h are not actually internal,
rather, they are common types used throughout the C++ and C APIs.
Rename the header accordingly.

PiperOrigin-RevId: 282494601
Change-Id: Ia784f35724d774db256ffcbbcdc5bb00e6574417
2019-11-25 21:49:25 -08:00
A. Unique TensorFlower
96b409518f Optimize elementwise addition op handler
PiperOrigin-RevId: 278359178
Change-Id: Ibe1486357a48d8a6215ce47c2f9fedddbdf42e9d
2019-11-04 05:50:33 -08:00
A. Unique TensorFlower
60f77c5186 Optimize elementwise addition op handler
PiperOrigin-RevId: 277933045
Change-Id: If1c9e8f823db8da6045810956de54b04b25eed90
2019-11-01 08:42:19 -07:00
A. Unique TensorFlower
552d6a22f6 Merged commit includes the following changes:
277453541  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Fix import path.

--
277445856  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Separate `update_bazel_(linux|macos)` call from `kokoro_init_(linux|macos)` function. Modify all build scripts to run `update_bazel_*` right after `kokoro_init_*` call.

--
277440435  by A. Unique TensorFlower<gardener@tensorflow.org>:
    Automated rollback of changelist 277217247.

277434196  by A. Unique TensorFlower<gardener@tensorflow.org>:

    TFLM: Move runtime tensor initialization upfront and allow tensor_info to be freed.

    This CL will save `sizeof(TensorInfo) * tensors_size` bytes in tensor_arena.

    The cascaded design of SimpleMemoryAllocator provides a save and intuitive abstraction. The Child allocator serves as a temporary allocator. Whatever allocated in the child will be freed once it goes out of scope. And it doesn't not affect allocation in the parent - parent allocator is locked down while child allocator is available.

--
277428110  by A. Unique TensorFlower<gardener@tensorflow.org>:
    Automated rollback of changelist 276610559.

277426570  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Exit gracefully when outside compilation is invoked outside TPUReplicateContext
    scope.

--
277423900  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Tensor tracer: adding ShapeN to list of ops that should not be traced.

--
277422316  by A. Unique TensorFlower<gardener@tensorflow.org>:

    [XLA] Don't try to inline dead instructions.

    Inlining previous instruction could make other call instructions
    dead. Don't inline those dead instructions.

--
277414458  by A. Unique TensorFlower<gardener@tensorflow.org>:

    Op documentation update.
    	update of g3doc/tfl_ops.md
    	update of g3doc/tf_ops.md

--

PiperOrigin-RevId: 277453541
2019-10-30 01:04:50 -07:00
Renjie Liu
1786c02a20 Fix broadcast add/mul generic broadcast cases.
PiperOrigin-RevId: 276610559
Change-Id: I180a391451b3b6a668d69ee2cef8679fccf15ef9
2019-10-24 19:09:13 -07:00
Renjie Liu
31ba61332d Fix broadcast add/mul generic broadcast cases.
PiperOrigin-RevId: 276190225
Change-Id: Id1d8616ecf5e2750ed8ba45192379f6b8e0f0820
2019-10-22 19:05:06 -07:00
Renjie Liu
0a0dbde0a4 remove unnecessary requires_flat_size_broadcast check.
PiperOrigin-RevId: 275175433
Change-Id: I084990420ed4a7f3cbb32ac554d0b2f65537be78
2019-10-16 21:05:26 -07:00
Renjie Liu
895659f67b Optimize broadcast add float path by reusing broadcast five fold logic.
PiperOrigin-RevId: 274325783
2019-10-12 02:32:44 -07:00
A. Unique TensorFlower
8c33948524 Move USE_NEON declaration to cpu_check.h, include that header everywhere USE_NEON is used.
PiperOrigin-RevId: 254024542
2019-06-19 10:47:12 -07:00
Renjie Liu
c39738021b Optimize for add int8 kernel.
PiperOrigin-RevId: 242996552
2019-04-10 20:56:02 -07:00
Shashi Shekhar
f654b66616 Add int8 support for Add.
PiperOrigin-RevId: 233760370
2019-02-13 09:18:25 -08:00
A. Unique TensorFlower
724cb2018c Optimized scalar-broadcast add.
PiperOrigin-RevId: 225484293
2018-12-13 21:12:34 -08:00
A. Unique TensorFlower
5c07cebb4c Optimize Quantizied broadcast add op.
PiperOrigin-RevId: 220782252
2018-11-09 04:13:46 -08: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