Skip to content

multiprocessing test metatensor#4308

Merged
wyli merged 3 commits intoProject-MONAI:devfrom
wyli:test-multiprocessing-metatensor
May 23, 2022
Merged

multiprocessing test metatensor#4308
wyli merged 3 commits intoProject-MONAI:devfrom
wyli:test-multiprocessing-metatensor

Conversation

@wyli
Copy link
Copy Markdown
Contributor

@wyli wyli commented May 20, 2022

Signed-off-by: Wenqi Li [email protected]

Description

may need to register new logic to the pickler
according to https://github.com/pytorch/pytorch/blob/53e0d7a3bae621ef0d07cfd44957736e9149dd8e/torch/_tensor.py#L77-L79

cc @rijobro

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 --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@wyli wyli requested a review from rijobro May 20, 2022 14:45
@rijobro
Copy link
Copy Markdown
Contributor

rijobro commented May 20, 2022

Should these not go into dev rather than feature/MetaTensor?

@wyli wyli changed the base branch from feature/MetaTensor to dev May 23, 2022 15:17
fixes unit test

update reduce

fixes mypy

Signed-off-by: Wenqi Li <[email protected]>
@wyli wyli force-pushed the test-multiprocessing-metatensor branch from 9763ee6 to cc9bc51 Compare May 23, 2022 15:24
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented May 23, 2022

Should these not go into dev rather than feature/MetaTensor?

thanks @rijobro, I think this one is now good for dev, it also fixes a constructor issue identified during testing:

>>> from monai.data import MetaTensor
>>> MetaTensor([1.0], device="cpu")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() got an unexpected keyword argument 'device'

@wyli wyli marked this pull request as ready for review May 23, 2022 15:28
@wyli wyli requested review from Nic-Ma and ericspod May 23, 2022 15:28
@wyli wyli mentioned this pull request May 23, 2022
2 tasks
Signed-off-by: Wenqi Li <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor Author

wyli commented May 23, 2022

/build

@wyli wyli enabled auto-merge (squash) May 23, 2022 16:55
@wyli wyli merged commit 07de215 into Project-MONAI:dev May 23, 2022
@wyli wyli deleted the test-multiprocessing-metatensor branch May 23, 2022 23:39
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.

2 participants