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.,
()
| 45 | |
| 46 | |
| 47 | def 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 | |
| 63 | class MetaObj: |
no outgoing calls
searching dependent graphs…