Fix trainer validation loop
This commit is contained in:
parent
f2282e3216
commit
9ac6fb64e8
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ class Trainer:
|
|||
val_inputs = torch.as_tensor(
|
||||
self.batch_generator_val.batch_data, dtype=self.data_dtype, device=self.device)
|
||||
val_labels = torch.as_tensor(
|
||||
self.batch_generator_val.batch_data, dtype=self.label_dtype, device=self.device)
|
||||
self.batch_generator_val.batch_label, dtype=self.label_dtype, device=self.device)
|
||||
|
||||
val_pre_process = self.pre_process(val_inputs)
|
||||
val_outputs = self.network(val_pre_process)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue