Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: tf.pad to pad an image with different values correspond to different channels respectively #19193
Describe the problem
tf.pad has a parameter
So is it possible to extend tf.pad to be able to pad 3 channels with different values respectively?
You can do this with three separate padding operations and a concat.
I.E. if an example "yourTensor" has 4 dimensions (batch,width,height,channels)
You can replace the slices on the final dimension with 0,1,and 2 respectively and use stack instead of concat and you will be able to just use a constant padding of "2" across every dimension which neatens the code up a decent bit but it also makes it less understandable. Either will be sufficient, however.
@cy89 I'm not working on it, but support for non scalar padding values would be great. Contributions welcome makes sense to me!…
On Sun, Aug 19, 2018, 11:52 AM Alfred Sorten Wolf ***@***.***> wrote: Nagging Assignee @cy89 <https://github.com/cy89>: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#19193 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABnn-1n7HeoyQRoIxT5ntHbZjeP08gkks5uSbPsgaJpZM4T5Wk3> .