@@ -48,12 +48,13 @@ class BaseClassifier(BaseAPI):
self.fixed_input_shape=None
defbuild_net(self,mode='train'):
ifself.__class__.__name__=="AlexNet":
assertself.fixed_input_shapeisnotNone,"In AlexNet, input_shape should be defined, e.g. model = paddlex.cls.AlexNet(num_classes=1000, input_shape=[224, 224])"