-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The pattern of invoking transforms with a lazy
parameter depending on isinstance(transform, LazyTrait)
is problematic
MONAI/monai/transforms/transform.py
Line 98 in e6ec945
return transform(data, lazy=lazy) if isinstance(transform, LazyTrait) else transform(data) |
because the
LazyTrait
API doesn't provide a __call__
design.MONAI/monai/transforms/traits.py
Lines 22 to 24 in e6ec945
class LazyTrait: | |
""" | |
An interface to indicate that the transform has the capability to execute using |
(introduced since #6537)
Nic-Ma
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working