Skip to content
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

Enhance pickle module and protocols #3418

Merged
merged 6 commits into from
Nov 30, 2021

Conversation

Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Nov 30, 2021

Fixes #3402 .

Followup PR to update below items:

  1. Add pickle args to LRFinder.
  2. Fixed the wrong default protocol to align with torch.save, which is 2. While the default value of pickle is 4:
    https://docs.python.org/3/library/pickle.html#pickle.DEFAULT_PROTOCOL
    https://pytorch.org/docs/stable/_modules/torch/serialization.html#save
  3. Added more description for the string arg for multi-processing.

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
Copy link
Contributor Author

Nic-Ma commented Nov 30, 2021

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Nov 30, 2021

/build

Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

Thanks, it looks good to me.

@wyli wyli merged commit ff9bbfa into Project-MONAI:dev Nov 30, 2021
wyli pushed a commit to patricio-astudillo/MONAI that referenced this pull request Dec 1, 2021
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added a commit that referenced this pull request Dec 1, 2021
…ks (#3419)

* Update segresnet_block.py

making the activation function a parameter to the class of the ResBlock

* Update segresnet.py

* passing activation to the residual blocks

* little change

* signed

Signed-off-by: Patricio Astudillo <patricio.astudillo@robovision.ai>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* [DLMED] add args and update default (#3418)

Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update docstrings

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

Co-authored-by: Patricio Astudillo <patricio.astudillo@robovision.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Wenqi Li <wenqil@nvidia.com>
Co-authored-by: Nic Ma <nma@nvidia.com>
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.

PersistentDataset Error
2 participants