Commit a5ee596
Changes thats need to be included for 0.48.1 patch release (#52)
* Struct2Tensor 0.48.0 Release
PiperOrigin-RevId: 743712449
* Build documentation with `mkdocs` (#38)
* Add minimum viable mkdocs configuration
* Add examples section
* Add links to api docs and overviews
* Get api docs up and running
* Add `__all__` to `__init__.py` files to include correct classes
This is just a first step to including the correct items in the api docs
* Exclude test modules from docs
* Use correct module
* Add docs deployment workflow
* Include all correct modules/classes/functions
* Fix button rendering
* Fix formatting, including admonitions
* Fix broken link
* Use README.md as homepage for docs
* Fix links
* Remove debug triggers from docs deployment workflow
* Remove deprecated api docs
* Fix triggers
* Move docs requirements to common location
* Only trigger on pushes to master
* Remove unnecessary newline characters
* Move docs location to default `docs` directory
* only internal visibility change, no external change
PiperOrigin-RevId: 755419474
* Automated Code Change
PiperOrigin-RevId: 796979132
* Automated Code Change
PiperOrigin-RevId: 803375108
* no-op
PiperOrigin-RevId: 809038483
* Added pytype None checks to calculate.py
PiperOrigin-RevId: 845226580
* Replace unicode escaped characters in ipynb files
PiperOrigin-RevId: 856192266
* Fixes that needs to be available in the main branch in order to cherry-pick into Release branch (#49)
* Update WORKSPACE
* Update workspace.bzl
* Migrate to Protobuf 4.23.4: custom Bazel rule for Python proto generation
Protobuf 4.x removed py_proto_library and changed proto_library behavior. This commit:
- Creates _py_proto_library_rule: a custom Bazel rule that accepts ProtoInfo or PyInfo,
runs protoc to generate Python _pb2.py files, and provides PyInfo for Python deps
- Replaces deprecated py_proto_library calls with custom rule implementation
- Configures protoc proto_path to include workspace dirs and external dependencies
- Adds local any.proto copies to bypass sandbox limitations in proto imports
- Applies compatibility patches to TensorFlow and TensorFlow Metadata dependencies
- Updates all s2t_proto_library_py calls to work with new implementation
Fixes: Protobuf 4.23.4 compatibility for struct2tensor build system
* Add compatibility patches for older Abseil and Protobuf 4.x
This patch extends tensorflow.patch with changes to support:
1. Abseil backward compatibility:
- Add absl_base_prefetch.h compatibility shim for older Abseil
versions that lack absl/base/prefetch.h
- Update prefetch includes across TensorFlow/TSL to use the shim
- Add inline implementation of NullTerminatedMessage for older
Abseil versions without StatusMessageAsCStr
2. Protobuf 4.x support:
- Refactor cc_proto_library to use native proto_library and
cc_proto_library rules instead of custom proto_gen
- Implement custom _tsl_py_proto_library_rule to replace the
built-in py_proto_library removed in Protobuf 4.x
- Update proto library generation to depend on generated
cc_proto_library targets
3. Build cleanup:
- Remove unused absl/strings:string_view dependency
- Update BUILD files to reflect new dependency structure
These changes enable building struct2tensor with older Abseil versions
while supporting Protobuf 4.x, improving compatibility across different
dependency versions.
* chore: upgrade Protobuf dependency from 4.23.4 to 4.25.6
* Move TFMD patch to tfmd.patch; Protobuf 4.x compatibility
Remove vendored google/protobuf/any.proto and obsolete third_party/README.md
* fix: Use native prefix for Bazel rules in macros
Prefix cc_binary and cc_library with native. in struct2tensor.bzl
* Update Dockerfile
* Fix struct2tensor integration in TensorFlow Serving Docker build
Apply rules_cc patch before adding struct2tensor local repository to ensure proper Bazel configuration.
* Update RELEASE.md to sync with main branch
* Update version.py
---------
Co-authored-by: Gagandeep Singh <gdp.1807@gmail.com>
* docs(release): Update RELEASE.md and version for 0.48.0
* Update Dockerfile to build with serving version 2.17.1
* Build and stage dynamic op libraries before wheel creation (#51)
Add explicit build and copy steps for dynamic op libraries (.so files) in
build_common.sh. This ensures all six dynamic library targets are built and
copied to struct2tensor/ops/ before the wheel is packaged.
Previously, the stamp_wheel step in build_manylinux.sh would fail with
patchelf errors ("No such file or directory") because the .so files were
expected in struct2tensor/ops/ but were not being copied from bazel-bin.
This fix:
- Explicitly builds each dynamic library target
- Copies the built .so files from bazel-bin to the staging directory
- Runs before bazel run :build_pip_package to ensure files are present
Fixes the missing _decode_proto_map_op.so, _decode_proto_sparse_op.so and
related dynamic library warnings during wheel packaging.
* Enable OSS Bazel builds by fixing dependencies and proto paths (#50)
- Add py_proto_library macro for OSS compatibility
- Replace gunit_main with googletest gtest_main
- Comment out Google-internal dependencies and missing test files
- Fix proto import to use workspace-relative path
- Remove invalid third_party load statements
Fixes build errors when running `bazel build //...` in OSS environment.
Co-authored-by: Madhur Karampudi <142544288+vkarampudi@users.noreply.github.com>
---------
Co-authored-by: struct2tensor-team <tensorflow-extended-nonhuman@googlegroups.com>
Co-authored-by: Gagandeep Singh <gdp.1807@gmail.com>1 parent 99b0d12 commit a5ee596
23 files changed
Lines changed: 1143 additions & 194 deletions
File tree
- examples
- struct2tensor
- benchmarks
- kernels
- parquet
- ops
- proto
- test
- tools
- docker_build
- tf_serving_docker
- third_party
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
65 | 82 | | |
66 | 83 | | |
67 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
| |||
116 | 131 | | |
117 | 132 | | |
118 | 133 | | |
| 134 | + | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 15 | + | |
| 16 | + | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| 357 | + | |
356 | 358 | | |
357 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
443 | | - | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
| |||
0 commit comments