fix: training loss is a zero dimensional tensor
Should fix the problem with EarlyStopping callback.
This commit is contained in:
committed by
Alexander Engelsberger
parent
f56ec44afe
commit
7b9b767113
@@ -1,12 +1,11 @@
|
||||
"""GMLVQ example using the MNIST dataset."""
|
||||
|
||||
import torch
|
||||
from pytorch_lightning.utilities.cli import LightningCLI
|
||||
|
||||
import prototorch as pt
|
||||
import torch
|
||||
from prototorch.models import ImageGMLVQ
|
||||
from prototorch.models.abstract import PrototypeModel
|
||||
from prototorch.models.data import MNISTDataModule
|
||||
from pytorch_lightning.utilities.cli import LightningCLI
|
||||
|
||||
|
||||
class ExperimentClass(ImageGMLVQ):
|
||||
|
Reference in New Issue
Block a user