scglue.models.scglue.PairedSCGLUETrainer.format_data

PairedSCGLUETrainer.format_data(data)[源代码]

Format data tensors

备注

The data dataset should contain data arrays for each modality, followed by alternative input arrays for each modality, in the same order as modality keys of the network.

返回类型

typing.Tuple[typing.Mapping[str, torch.Tensor], typing.Mapping[str, torch.Tensor], typing.Mapping[str, torch.Tensor], typing.Mapping[str, torch.Tensor], typing.Mapping[str, torch.Tensor], typing.Mapping[str, torch.Tensor], torch.Tensor, torch.Tensor, torch.Tensor]