Skip to content

Remove 1024 limit for str on collective ops #1697

@vfdev-5

Description

@vfdev-5

🚀 Feature

Currently, if we have a limitation of 1024 chars for str input on collective ops:

size = 1024
if len(x) > size:
warnings.warn(f"Input string size {len(x)} is larger than {size} and thus will be truncated")
x = x[:size]

The idea is to remove this limitation. We can do that as following:

  • for all inputs as str, we can first gather all lenghts
  • find the max lengths
  • pad the input to the max lenghts + add input length value (as it is done currently)
  • perform collective op

Bug ref: Project-MONAI/MONAI#1633

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions