Skip to content

Should we support random operation of PyTorch Tensor #3180

Open
@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
Hi @wyli @ericspod @rijobro ,

Currently, all the random operations in transforms are based on numpy, especially for deterministic purpose.
Most of them are light computation, but some are heavy to generate a random array, for example:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/intensity/array.py#L1910
It may block the GPU Tensor transform.
Should we consider to support Tensor random operations?
What do you guys think?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions