-
Notifications
You must be signed in to change notification settings - Fork 1.4k
2920 Enhance padding mode for Tensor data #2921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
merge master
merge master
merge master
merge master
merge master
Signed-off-by: Nic Ma <nma@nvidia.com>
|
It would certainly be great if we could use torch.pad for torch input and numpy.pad for numpy input. I think the reason I made these caveats was because the torch.pad is more limited compared to the numpy version. I suspect this will be reflected by the unit tests, but would be great if you could get it working! |
|
Hi @rijobro , Thanks for your support, I think it's user's responsibility to choose the correct mode for the input data type(numpy or Tensor), we can explicitly show the supported modes of Thanks. |
|
Hi @wyli , Do you have any other concerns? Thanks. Thanks. |
|
do we need a suitable default for both numpy and torch inputs? |
|
constant 0 may 'break' the original intensity distribution and the results of mean/max/min would be very different from the original ones...I think 'edge'/'replicate' is a safer choice |
Signed-off-by: Nic Ma <nma@nvidia.com>
|
/black |
Signed-off-by: Nic Ma <nma@nvidia.com>
|
/black |
Signed-off-by: Nic Ma <nma@nvidia.com>
|
/build |
wyli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, please see some minor comments inline
Signed-off-by: Nic Ma <nma@nvidia.com>
caff2ac to
153a7ef
Compare
|
/black |
Signed-off-by: Nic Ma <nma@nvidia.com>
Fixes #2920 .
Description
This PR enhanced the padding modes and additional args for Tensor data.
Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests.make htmlcommand in thedocs/folder.