未验证 提交 8b445e9e 编写于 作者: Z zhouzj 提交者: GitHub

Fix tests of latencyPredictor. (#1433)

上级 438e5ec1
......@@ -91,6 +91,9 @@ def opt_model(opt="paddle_lite_opt",
model_out = os.path.join(model_out, 'model')
else:
model_out = model_out + '.nb'
assert os.path.exists(
model_out
), 'There is an error during \'opt\' conversion model, please check the above error message.'
return model_out
......@@ -133,7 +136,8 @@ def save_cls_model(model, input_shape, save_dir, data_type):
batch_size=input_shape[0],
batch_nums=1,
weight_bits=8,
activation_bits=8)
activation_bits=8,
quantizable_op_type=["conv2d", "depthwise_conv2d"])
model_file = os.path.join(quantize_model_path, 'model.pdmodel')
param_file = os.path.join(quantize_model_path, 'model.pdiparams')
......
......@@ -13,7 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import time
import os
import pip
import platform
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册