Commit Graph

14 Commits

Author SHA1 Message Date
Karim Nosir
2a96849f47 Update source files with used includes.
PiperOrigin-RevId: 316589177
Change-Id: I0aba0ed1cf9ff478e7890fa53a7749bf844bd26d
2020-06-15 18:42:14 -07:00
Deven Desai
1b76def9a4 [ROCm] Fix for a build failure on the ROCm platform - 200323 -
The following commit introduces a build error on the ROCm platform

848a0666d4

build error

```
ERROR: /root/tensorflow/tensorflow/lite/kernels/BUILD:1747:1: Couldn't build file tensorflow/lite/kernels/_objs/pack_test/pack_test.o: C++ compilation of rule '//tensorflow/lite/kernels:pack_test' failed (Exit 1)
tensorflow/lite/kernels/pack_test.cc:198:31: error: expected ';' at end of member declaration
       std::is_same<InputType, int16_t>::value
                               ^
tensorflow/lite/kernels/pack_test.cc:198:38: error: expected unqualified-id before '>' token
       std::is_same<InputType, int16_t>::value
                                      ^
tensorflow/lite/kernels/pack_test.cc:198:20: error: wrong number of template arguments (1, should be 2)
       std::is_same<InputType, int16_t>::value
                    ^
In file included from /usr/include/c++/5/bits/move.h:57:0,
                 from /usr/include/c++/5/bits/stl_pair.h:59,
                 from /usr/include/c++/5/bits/stl_algobase.h:64,
                 from /usr/include/c++/5/memory:62,
                 from external/com_google_googletest/googletest/include/gtest/gtest.h:56,
                 from tensorflow/lite/kernels/pack_test.cc:15:
/usr/include/c++/5/type_traits:958:12: note: provided for 'template<class, class> struct std::is_same'
     struct is_same;
            ^
ERROR: /root/tensorflow/tensorflow/lite/kernels/BUILD:1789:1: Couldn't build file tensorflow/lite/kernels/_objs/unpack_test/unpack_test.o: C++ compilation of rule '//tensorflow/lite/kernels:unpack_test' failed (Exit 1)
tensorflow/lite/kernels/unpack_test.cc:90:31: error: expected ';' at end of member declaration
       std::is_same<InputType, int16_t>::value
                               ^
tensorflow/lite/kernels/unpack_test.cc:90:38: error: expected unqualified-id before '>' token
       std::is_same<InputType, int16_t>::value
                                      ^
tensorflow/lite/kernels/unpack_test.cc:90:20: error: wrong number of template arguments (1, should be 2)
       std::is_same<InputType, int16_t>::value
                    ^
In file included from /usr/include/c++/5/bits/move.h:57:0,
                 from /usr/include/c++/5/bits/stl_pair.h:59,
                 from /usr/include/c++/5/bits/stl_algobase.h:64,
                 from /usr/include/c++/5/memory:62,
                 from external/com_google_googletest/googletest/include/gtest/gtest.h:56,
                 from tensorflow/lite/kernels/unpack_test.cc:15:
/usr/include/c++/5/type_traits:958:12: note: provided for 'template<class, class> struct std::is_same'
     struct is_same;
            ^
                                      ^
```

The build error seems is similar to the one discussed in this PR https://github.com/tensorflow/tensorflow/pull/36558, and the fix is the same as well (adding parens around cond op expression)
2020-04-21 16:17:35 +00:00
TensorFlower Gardener
848a0666d4 Merge pull request from wwwind:maxmin_unpackpack_int16
PiperOrigin-RevId: 301420343
Change-Id: Iab4db6de052ec9c8f49b2f05868952bec0f355f6
2020-03-17 11:52:43 -07:00
Elena Zhelezina
b3a5574690
Merge branch 'master' into maxmin_unpackpack_int16 2020-02-13 14:13:08 +00:00
Thai Nguyen
d0322efb28 Remove dimension check in TFLite unpack
The current implementation can support arbitrary dimension

PiperOrigin-RevId: 294843677
Change-Id: Id22d4e360a22704f90345886f5b04465c54462e6
2020-02-12 23:22:30 -08:00
Elena Zhelezina
9bbc41c554 16-bit support for reference kernels:
MAX/MIN element-wise reference operators
PACK
UNPACK
2020-01-20 10:52:13 +00:00
Jaesung Chung
a1aa335328 Add bool support in TFL unpack op
This bool type support is required for tf.layers.keras.RNN with unroll=True.

PiperOrigin-RevId: 286955661
Change-Id: Ie557febc346e44978c4e3e96d828b21098ab3afb
2019-12-23 16:16:28 -08:00
Sachin Joglekar
743f73d3d6 Unpack op now supports vector -> scalar
PiperOrigin-RevId: 260241806
2019-07-26 17:16:22 -07:00
Jared Duke
e84aa1a608 Refactor TFLite kernel tests to use a common main
PiperOrigin-RevId: 249460028
2019-05-22 09:21:06 -07:00
ANSHUMAN TRIPATHY
a203967895 Test cases added 2019-04-30 14:15:15 +05:30
Dayananda-V
6e04e04edd TfLite unpack_test test case refactor
Refactor existing test case to simplified version to support additional test case in future.
2019-04-01 16:32:09 +05:30
TensorFlower Gardener
7b01bb0fe6 Merge pull request from ANSHUMAN87:unpack-negative-axis
PiperOrigin-RevId: 234624803
2019-02-19 10:26:08 -08:00
ANSHUMAN TRIPATHY
0299f62f36 Lite: Unpack Operator Negative Axis Support 2019-02-13 10:26:39 +05:30
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