Describe the bug
The error FAILED tests/test_solvers/test_pinn.py::test_train_cpu - AttributeError: 'CombinedLoader' object has no attribute 'condition_names' occurs when running Python3.7
To Reproducepython3.7 -m pytest tests/test_solver/test_pinn.py -k train_cpu
Output
def training_step(self, batch, batch_idx):
"""PINN solver training step.
:param batch: The batch element in the dataloader.
:type batch: tuple
:param batch_idx: The batch index.
:type batch_idx: int
:return: The sum of the loss functions.
:rtype: LabelTensor
"""
dataloader = self.trainer.train_dataloader
condition_losses = []
condition_idx = batch['condition']
for condition_id in range(condition_idx.min(), condition_idx.max()+1):
> condition_name = dataloader.condition_names[condition_id]
E AttributeError: 'CombinedLoader' object has no attribute 'condition_names'
Additional context
The installed packages to reproduce the error are:
Describe the bug The error
FAILED tests/test_solvers/test_pinn.py::test_train_cpu - AttributeError: 'CombinedLoader' object has no attribute 'condition_names'
occurs when running Python3.7To Reproduce
python3.7 -m pytest tests/test_solver/test_pinn.py -k train_cpu
Output
Additional context The installed packages to reproduce the error are: