Skip to content

Add uint32 and uint64 kernel support for Invert - #15154

Merged
jhseu merged 4 commits into
tensorflow:masterfrom
yongtang:12052017-invert-uint32-uint64
Feb 8, 2018
Merged

jhseu merged 4 commits into
tensorflow:masterfrom
yongtang:12052017-invert-uint32-uint64

Conversation

@yongtang

@yongtang yongtang commented Dec 6, 2017

Copy link
Copy Markdown
Member

This fix adds uint32 and uint64 kernel support for Invert.

In bitwise_ops.cc, uint32 and uint64 have been registered for Invert like other bitwise ops BitwiseAnd/BitwiseOr/BitwiseXor/LeftShift/RightShift.

However, no uint32 and uint64 kernels available for Invert yet.

This fix add uint32 and uint64 kernel for Invert, and adds additional test cases to cover the changes.

Signed-off-by: Yong Tang [email protected]

@caisq caisq self-assigned this Dec 6, 2017
@caisq

caisq commented Dec 6, 2017

Copy link
Copy Markdown
Contributor

@tensorflow-jenkins test this please

@caisq
caisq self-requested a review December 6, 2017 15:10
@drpngx

drpngx commented Dec 26, 2017

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

@drpngx drpngx added awaiting review Pull request awaiting review kokoro:run labels Dec 26, 2017
@tensorflowbutler

Copy link
Copy Markdown
Member

Nagging Assignee: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@yongtang

Copy link
Copy Markdown
Member Author

Ping @caisq @drpngx. Any chance to take a look?

DEFINE_UNARY5(F, T2, T3, T4, T5, T6)
#define DEFINE_UNARY8(F, T0, T1, T2, T3, T4, T5, T6, T7) \
DEFINE_UNARY2(F, T0, T1); \
DEFINE_UNARY6(F, T2, T3, T4, T5, T6, T7)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For efficiency, it is better to use two calls to DEFINE_UNARY_4 here.

@yongtang
yongtang force-pushed the 12052017-invert-uint32-uint64 branch 2 times, most recently from 462a205 to 64f3159 Compare January 17, 2018 19:50
@yongtang

Copy link
Copy Markdown
Member Author

@caisq Thanks for the review. The PR has been updated. Please take a look.

@tensorflowbutler

Copy link
Copy Markdown
Member

Nagging Assignee: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

This fix adds uint32 and uint64 kernel support for `Invert`.

In bitwise_ops.cc, uint32 and uint64 have been registered
for `Invert` like other bitwise ops
`BitwiseAnd`/`BitwiseOr`/`BitwiseXor`/`LeftShift`/`RightShift`.
However, no uint32 and uint64 kernels available for `Invert` yet.

This fix add uint32 and uint64 kernel for `Invert`,
and adds additional test cases to cover the changes.

Signed-off-by: Yong Tang <[email protected]>
@yongtang
yongtang force-pushed the 12052017-invert-uint32-uint64 branch from 64f3159 to 3a19416 Compare February 6, 2018 15:36
@yongtang

yongtang commented Feb 6, 2018

Copy link
Copy Markdown
Member Author

@caisq The PR has been rebased and pushed to resolve the merge conflict. Please take a look.

@caisq caisq added awaiting testing (then merge) kokoro:force-run Tests on submitted change and removed awaiting review Pull request awaiting review labels Feb 6, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 6, 2018
@jhseu
jhseu merged commit 6b1208c into tensorflow:master Feb 8, 2018
@yongtang
yongtang deleted the 12052017-invert-uint32-uint64 branch February 8, 2018 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants