Skip to content

2369 Detach Tensor in decollate_batch#2378

Closed
Nic-Ma wants to merge 6 commits intoProject-MONAI:devfrom
Nic-Ma:2369-detach-tensor
Closed

2369 Detach Tensor in decollate_batch#2378
Nic-Ma wants to merge 6 commits intoProject-MONAI:devfrom
Nic-Ma:2369-detach-tensor

Conversation

@Nic-Ma
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma commented Jun 16, 2021

Fixes #2369 .

Description

This PR enhanced the decollate_batch API to detach tensors and added several sanity checks.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma Nic-Ma force-pushed the 2369-detach-tensor branch from 1d3084b to 4bd3d05 Compare June 16, 2021 03:36
@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jun 16, 2021

/black

@Nic-Ma Nic-Ma requested review from ericspod, rijobro and wyli June 16, 2021 03:36
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Jun 16, 2021

I think we should work on a generic decollate utility like #2379, the current implementation is becoming difficult to maintain

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jun 17, 2021

I think we should work on a generic decollate utility like #2379, the current implementation is becoming difficult to maintain

Yes, thanks for your refactoring, let's close this PR and complete your PR directly.

Thanks.

@Nic-Ma Nic-Ma closed this Jun 17, 2021
@Nic-Ma Nic-Ma deleted the 2369-detach-tensor branch July 2, 2021 23:38
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.

Should detach the Tensor before decollate_batch

2 participants