File tree 2 files changed +4
-4
lines changed
training/knowledge_distillation 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
class ModelFactory :
13
13
"""A base class for Larq Zoo models. Defines some common fields."""
14
14
15
+ input_quantizer = None
16
+ kernel_quantizer = None
17
+ kernel_constraint = None
18
+
15
19
# This field is included for automatic inference of `num_clases`, if no
16
20
# value is otherwise provided. We set `allow_missing` because we don't want
17
21
# to throw an error if a dataset is not provided, as long as `num_classes`
Original file line number Diff line number Diff line change @@ -296,10 +296,6 @@ class TeacherStudentModelFactory(ModelFactory):
296
296
teacher_model : tf .keras .models .Model = ComponentField (allow_missing = True )
297
297
student_model : tf .keras .models .Model = ComponentField ()
298
298
299
- input_quantizer = None
300
- kernel_quantizer = None
301
- kernel_constraint = None
302
-
303
299
# Must be set if there is a teacher and allow_missing teacher weights is not True.
304
300
# Either a full path or the name of a network (in which case it will be sought in the current `model_dir`).
305
301
initialize_teacher_weights_from : str = Field (allow_missing = True )
You can’t perform that action at this time.
0 commit comments