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
"It is strongly recommended to provide pretrained weights, otherwise accuracy will be bad. This option is here mainly for CI purpose to ensure compile is successful."
120
+
)
115
121
116
122
# convert conv1d to conv2d in nn.Module level will only introduce 2 permute
117
123
# nodes around input & output, which is more quantization friendly.
@@ -128,9 +134,15 @@ def main(args):
128
134
129
135
# retrieve dataset, will take some time to download
130
136
data_num=100
131
-
inputs, targets, input_list=get_dataset(
132
-
data_size=data_num, artifact_dir=args.artifact
133
-
)
137
+
ifargs.compile_only:
138
+
inputs= [(torch.rand(1, 1, 700, 1),)]
139
+
logging.warning(
140
+
"With compile_only, accuracy will be bad due to insufficient datasets for quantization."
0 commit comments