You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add model compression support for models without training script (#948)
* add model compression support for models without training script
* fix line changes
* update doc for model compression
* make the error message more reasonable
* update doc for model compression
"The input frozen model: %s has no training script or min_nbor_dist information,"
70
-
"which is not supported by the model compression program."
71
-
"Please consider using the dp convert-from interface to upgrade the model"%input
72
-
) frome
73
+
iftraining_script==None:
74
+
raiseRuntimeError(
75
+
"The input frozen model: %s has no training script or min_nbor_dist information, "
76
+
"which is not supported by the model compression interface. "
77
+
"Please consider using the --training-script command within the model compression interface to provide the training script of the input frozen model. "
78
+
"Note that the input training script must contain the correct path to the training data."%input
79
+
) frome
80
+
elifos.path.exists(training_script) ==False:
81
+
raiseRuntimeError(
82
+
"The input training script %s does not exist! Please check the path of the training script. "% (input+"("+os.path.abspath(input) +")")
0 commit comments