Commit Graph

29 Commits

Author SHA1 Message Date
YoungSeok Yoon
f9fb66cdb7 Correctly add newline character when concatenating schema generated python srcs
The last sed command used for adding the import statement and the '\n' was
working as intended on Linux, but was failing on macOS, due to the difference in
sed behavior between GNU and BSD.

Fixed the issue by using an actual newline character with $'\n', which correctly
works on both platforms.

Fixes https://github.com/tensorflow/tensorflow/issues/39756

PiperOrigin-RevId: 313691192
Change-Id: I96e5544c03641bae05753e8f7d1346c8aa1c0f6e
2020-05-28 17:34:10 -07:00
Xunkai Zhang
eb71191f7b [tfls.metadata] Use java7 version opts to build metadata lib.
PiperOrigin-RevId: 311851755
Change-Id: I853e23a60f37cb89cc57653e85ff708ed467d512
2020-05-15 21:37:16 -07:00
Lu Wang
ac539cf044 Check Flatbuffer identifier in both MetadataPopulator and MetadataExtractor
PiperOrigin-RevId: 304633026
Change-Id: Ib8edd9897c3ae7162aac1bba4aa676e99e9c0e07
2020-04-03 09:44:54 -07:00
Lu Wang
549434018c Add util.py to the flatbuffer python runtime.
PiperOrigin-RevId: 304426659
Change-Id: I5832ed22f0e1cbf0bdfdc4d69683de3cb1f91325
2020-04-02 10:24:27 -07:00
Lu Wang
9ebf4a223b OSS TFLite Metadata library
PiperOrigin-RevId: 299966503
Change-Id: I08e6e7d424822c5f80f48b0f0c670f3c9c75f403
2020-03-09 16:47:59 -07:00
Brian Atkinson
d5b884ab0a Reduce visibility to internals of the flatbuffer repository.
Rather than defaulting to public, default to private and explicitly mark the
targets that should be externally visible. This causes the visibility to line up
with what is available in the BUILD.system file.

PiperOrigin-RevId: 292064746
Change-Id: I4964983457b3e5f31200531fe35f2aa316c73833
2020-01-28 19:58:42 -08:00
William D. Irons
03e04c6010 Restore freebsd and windows keys
so they can be used in the flatc link options
2020-01-27 14:15:34 +00:00
William D. Irons
d76a08e9f6 Fix flatbuffers link error
This commit:
adf6e22e4a (diff-4bdae93a605044a27f9df49a92bcf398L129)

Removed the linkopts section from the cc_binary 'flatc' from
third_party/flatbuffers/BUILD.bazel. That caused builds to fail with:

/usr/bin/ld: bazel-out/host/bin/external/flatbuffers/src/libflatbuffers.a(idl_parser.o): undefined reference to symbol 'cos@@GLIBC_2.17'
/dt7/lib/powerpc64le-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

(This is GPU builds on ppc64le)

I tried passing `--linkopt=-lm` on the bazel build command but it still failed.
Restoring the original linkopts section does resolve this problem. (and it
seems better to have the linkopt here than globally for the entire build)

A simple `linkopts = ["-lm"],` works for ppc64le, but I figured for windows and
other platforms it was better to restore the original values.
2020-01-24 23:52:21 +00:00
Pete Warden
adf6e22e4a Enable visualization script to work from pip install
Current the visualization script for TensorFlow Lite files only works if you build through Bazel. To make it more accessible, this change uses Flatbuffer's new Python interface to extract the information from the file, rather than calling out to an external tool. It also adds some tests.
A lot of the changes here are related to upgrading to the latest version of Flatbuffers, which has an impact on other parts of the code.

PiperOrigin-RevId: 291255530
Change-Id: I28a64a182e6197a58926d02c41988e4791c60fce
2020-01-23 15:20:03 -08:00
Smit Hinsu
0b2d7049ac Enable visualization script to work from pip install
Current the visualization script for TensorFlow Lite files only works if you build through Bazel. To make it more accessible, this change uses Flatbuffer's new Python interface to extract the information from the file, rather than calling out to an external tool. It also adds some tests.
A lot of the changes here are related to upgrading to the latest version of Flatbuffers, whi...

PiperOrigin-RevId: 290887928
Change-Id: I90403c1f4233f472ee5d7c4d21eed8233cb7d008
2020-01-21 21:54:42 -08:00
Pete Warden
1219c0ba8d Enable visualization script to work from pip install
Current the visualization script for TensorFlow Lite files only works if you build through Bazel. To make it more accessible, this change uses Flatbuffer's new Python interface to extract the information from the file, rather than calling out to an external tool. It also adds some tests.
A lot of the changes here are related to upgrading to the latest version of Flatbuffers, which has an impact on other parts of the code.

PiperOrigin-RevId: 290788860
Change-Id: I4db3442110c48e01da2b5696b693562c806735fd
2020-01-21 11:47:07 -08:00
Kazuaki Ishizaki
27643b326c minor spelling tweaks 2020-01-16 14:36:52 +09:00
Frank Chen
2b5ece29d3 Mechanical replacement of mirror.tensorflow.org with https equivalent.
PiperOrigin-RevId: 259676414
2019-07-23 22:26:09 -07:00
Fangjun Kuang
c33cb90ff4 [lite/micro] fix various typos. 2019-06-04 19:47:40 +08:00
Karim Nosir
df1a05578b update flatbuffers to 1.11
PiperOrigin-RevId: 248196967
2019-05-14 13:34:01 -07:00
Gunhan Gulsoy
b5d67b7c69 Move all TF bazel dependencies to use mirror.tensorflow.org.
PiperOrigin-RevId: 240852310
2019-03-28 14:31:12 -07:00
Shashi Shekhar
b62cadc151 - Upgrade flatbuffer schema and flatbuffer versions.
- Update the flatbuffer download URL to use a pinned version.
- Had to provide a mirror url that doesn't exist, since it is required
by the validation flow, the flatbuffer version will be added later.

PiperOrigin-RevId: 214487576
2018-09-25 12:56:16 -07:00
Andrew Selle
40037223b3 Automated rollback of commit 0065d3389a
PiperOrigin-RevId: 212119629
2018-09-08 09:23:39 -07:00
Austin Anderson
13a4688fc3 Convert TensorFlow's flatbuffers dependency to new third party import method
PiperOrigin-RevId: 209833197
2018-08-22 14:49:44 -07:00
Austin Anderson
833e8803da Automated rollback of commit f35866577c
PiperOrigin-RevId: 209443205
2018-08-20 10:40:38 -07:00
Austin Anderson
f35866577c Convert TensorFlow's flatbuffers dependency to new third party import method.
PiperOrigin-RevId: 209056244
2018-08-16 15:13:48 -07:00
Loo Rong Jie
bdd8bf316e Remove all references of windows_msvc config_setting 2018-07-12 10:50:40 +08:00
Loo Rong Jie
1dc5772b08 [Bazel/MSVC] Cleanup -ldl/-lm flags for MSVC 2018-07-12 10:46:54 +08:00
Yong Tang
359f53686c Update flatbuffers to 1.9.0 ()
* Update flatbuffers to 1.9.0

This fix updates flatbuffers to 1.9.0. The previous version
used (971a681) in tf was released last year, and is not
a versioned release. This fix updates to the latest versioned
release of 1.9.0.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Add missing files of java_generator.cc to fix build error.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-06-21 22:09:56 -07:00
Yifei Feng
ae805bd8ca Fix sanity. 2018-02-01 17:56:22 -08:00
A. Unique TensorFlower
e4532d2097 Merge changes from github.
PiperOrigin-RevId: 179953488
2017-12-22 12:46:28 -08:00
Sourabh Bajaj
b2db981a67 Merge changes from github.
PiperOrigin-RevId: 177526301
2017-11-30 16:41:01 -08:00
Andrew Selle
0b15439f8f Internal Change.
PiperOrigin-RevId: 175307445
2017-11-10 16:14:42 -08:00
Michael Case
6149fecbdb Internal Change
PiperOrigin-RevId: 173478239
2017-10-25 17:55:36 -07:00