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

simplify list_data_collate and collate_meta_tensor #7165

Merged
merged 9 commits into from
Oct 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
minor fix
Signed-off-by: KumoLiu <yunl@nvidia.com>
KumoLiu committed Oct 26, 2023
commit 46ef51821baf8166d9cdc9942378be940581b291
2 changes: 1 addition & 1 deletion monai/data/utils.py
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@
)

if pytorch_after(1, 13):
# import private code for reuse purposes
# import private code for reuse purposes, comment in case things break in the future
from torch.utils.data._utils.collate import collate_tensor_fn, default_collate_fn_map
pd, _ = optional_import("pandas")
DataFrame, _ = optional_import("pandas", name="DataFrame")