MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _InplaceXform

Class _InplaceXform

tests/data/test_lmdbdataset.py:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class _InplaceXform(Transform):
83 def __call__(self, data):
84 if data:
85 data[0] = data[0] + np.pi
86 else:
87 data.append(1)
88 return data
89
90
91class TestLMDBDataset(unittest.TestCase):

Callers 1

test_cacheMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_cacheMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…