Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Project-MONAI/MONAI
/ _InplaceXform
Class
_InplaceXform
tests/data/test_persistentdataset.py:56–62 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
54
55
56
class
_InplaceXform(Transform):
57
def
__call__(self, data):
58
if
data:
59
data[0] = data[0] + np.pi
60
else
:
61
data.append(1)
62
return
data
63
64
65
class
TestDataset(unittest.TestCase):
Callers
1
test_cache
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_cache
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…