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

Function get_track_meta

monai/data/meta_obj.py:47–60  ·  view source on GitHub ↗

Return the boolean as to whether metadata is tracked. If `True`, metadata will be associated its data by using subclasses of `MetaObj`. If `False`, then data will be returned with empty metadata. If `set_track_meta` is `False`, then standard data objects will be returned (e.g.,

()

Source from the content-addressed store, hash-verified

45
46
47def get_track_meta() -> bool:
48 """
49 Return the boolean as to whether metadata is tracked. If `True`, metadata will be
50 associated its data by using subclasses of `MetaObj`. If `False`, then data will be
51 returned with empty metadata.
52
53 If `set_track_meta` is `False`, then standard data objects will be returned (e.g.,
54 `torch.Tensor` and `np.ndarray`) as opposed to MONAI's enhanced objects.
55
56 By default, this is `True`, and most users will want to leave it this way. However,
57 if you are experiencing any problems regarding metadata, and aren't interested in
58 preserving metadata, then you can disable it.
59 """
60 return _TRACK_META
61
62
63class MetaObj:

Callers 15

__init__Method · 0.90
update_metaMethod · 0.90
push_transformMethod · 0.90
track_transform_metaMethod · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90
__call__Method · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…