Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Project-MONAI/MONAI
/ _InplaceXform
Class
_InplaceXform
tests/data/test_lmdbdataset_dist.py:25–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
23
24
25
class
_InplaceXform(Transform):
26
def
__call__(self, data):
27
if
data:
28
data[0] = data[0] + np.pi
29
else
:
30
data.append(1)
31
return
data
32
33
34
@skip_if_windows
Callers
1
test_mp_cache
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_mp_cache
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…