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

Method __call__

monai/transforms/utility/dictionary.py:283–288  ·  view source on GitHub ↗
(self, data: Mapping[Hashable, torch.Tensor])

Source from the content-addressed store, hash-verified

281 self.adjuster = EnsureChannelFirst(strict_check=strict_check, channel_dim=channel_dim)
282
283 def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hashable, torch.Tensor]:
284 d = dict(data)
285 for key in self.key_iterator(d):
286 meta_dict = d[key].meta if isinstance(d[key], MetaTensor) else None # type: ignore[attr-defined]
287 d[key] = self.adjuster(d[key], meta_dict)
288 return d
289
290
291class RepeatChanneld(MapTransform):

Callers

nothing calls this directly

Calls 1

key_iteratorMethod · 0.80

Tested by

no test coverage detected