diff --git a/python/paddle_serving_client/io/__init__.py b/python/paddle_serving_client/io/__init__.py index 0f660116be0bef13de43d2bc8d67ba37fd23088b..efb84b564bc4bc3a16435f4f1423398fd23f3aa4 100644 --- a/python/paddle_serving_client/io/__init__.py +++ b/python/paddle_serving_client/io/__init__.py @@ -62,7 +62,7 @@ def save_model(server_model_folder, fetch_var.alias_name = key fetch_var.name = fetch_var_dict[key].name fetch_var.is_lod_tensor = fetch_var_dict[key].lod_level >= 1 - if feteh_var.is_lod_tensor: + if fetch_var.is_lod_tensor: fetch_var.shape.extend([-1]) else: tmp_shape = []