加载转换好的模型时报错Enforce failed. Expected version == 0U, but received version:5 != 0U:0.
Created by: wc8287194
完整报错如下: Traceback (most recent call last): File "E:/CNNNET/paddle/tensorflow2fluid/tf2fluid/predict.py", line 6, in model = ml.ModelLoader("translated_paddle_model", use_cuda=True) File "E:\CNNNET\paddle\tensorflow2fluid\tf2fluid\model_loader.py", line 42, in init fluid.io.load_vars(self.exe, model_dir, vars=var_list) File "D:\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 610, in load_vars executor.run(load_prog) File "D:\Anaconda3\lib\site-packages\paddle\fluid\executor.py", line 565, in run use_program_cache=use_program_cache) File "D:\Anaconda3\lib\site-packages\paddle\fluid\executor.py", line 642, in _run exe.run(program.desc, scope, 0, True, True, fetch_var_name) paddle.fluid.core.EnforceNotMet: Invoke operator load error. Python Callstacks: File "D:\Anaconda3\lib\site-packages\paddle\fluid\framework.py", line 1654, in append_op attrs=kwargs.get("attrs", None)) File "D:\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 596, in load_vars attrs={'file_path': os.path.join(dirname, new_var.name)}) File "E:\CNNNET\paddle\tensorflow2fluid\tf2fluid\model_loader.py", line 42, in init fluid.io.load_vars(self.exe, model_dir, vars=var_list) File "E:/CNNNET/paddle/tensorflow2fluid/tf2fluid/predict.py", line 6, in model = ml.ModelLoader("translated_paddle_model", use_cuda=True) C++ Callstacks: Enforce failed. Expected version == 0U, but received version:5 != 0U:0. Only version 0 is supported at [D:/1.4.1/paddle/paddle/fluid/framework/.tensor_util.cu:453] PaddlePaddle Call Stacks: Windows not support stack backtrace yet. W0508 10:14:41.673883 22764 device_context.cc:261] Please NOTE: device: 0, CUDA Capability: 61, Driver API Version: 9.2, Runtime API Version: 8.0 W0508 10:14:41.679867 22764 device_context.cc:269] device: 0, cuDNN Version: 7.0.