Skip to content

Conversation

@yongtang
Copy link
Member

This PR tries to address the isseu in #918 by adding
support for partially-known and unknown shape specification in decode_json.

In this PR, the shapes are not passed in C++ kernels anymore. Instead,
the C++ kernels will always render 1-D output tensor first with a
follow-up tf.reshape to fixup the shape later.

This PR fixes #918.

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

This PR tries to address the isseu in 918 by adding
support for partially-known and unknown shape specification in decode_json.

In this PR, the shapes are not passed in C++ kernels anymore. Instead,
the C++ kernels will always render 1-D output tensor first with a
follow-up tf.reshape to fixup the shape later.

This PR fixes 918.

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

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice enhancement. Thanks!

@yongtang yongtang merged commit fb1282d into tensorflow:master Jun 14, 2020
@yongtang yongtang deleted the json-partial branch June 14, 2020 00:24
i-ony pushed a commit to i-ony/io that referenced this pull request Feb 8, 2021
tensorflow#996)

This PR tries to address the isseu in 918 by adding
support for partially-known and unknown shape specification in decode_json.

In this PR, the shapes are not passed in C++ kernels anymore. Instead,
the C++ kernels will always render 1-D output tensor first with a
follow-up tf.reshape to fixup the shape later.

This PR fixes 918.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
zheolong pushed a commit to zheolong/io-1 that referenced this pull request Jul 24, 2025
tensorflow#996)

This PR tries to address the isseu in 918 by adding
support for partially-known and unknown shape specification in decode_json.

In this PR, the shapes are not passed in C++ kernels anymore. Instead,
the C++ kernels will always render 1-D output tensor first with a
follow-up tf.reshape to fixup the shape later.

This PR fixes 918.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support partially-known and unknown shape specification in decode_json

2 participants