【论文复现】训练代码执行器错误,车牌检测作业网络定义那里改成dnn,lenet,vgg,都试过了都不会报这个溢出的错,但是改成ResNet和AlexNet,就都报这个错,ball ball 大佬解决一下。
Created by: Ole168
---------------------------------------------------------------------------EnforceNotMet Traceback (most recent call last) in 11 labels = np.array([x[1] for x in data]).astype('int64') 12 labels = labels[:, np.newaxis] ---> 13 image=fluid.dygraph.to_variable(images) 14 label=fluid.dygraph.to_variable(labels) 15 </opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/decorator.py:decorator-gen-153> in to_variable(value, name, zero_copy) /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py in impl(func, *args, **kwargs) 23 def impl(func, *args, **kwargs): 24 wrapped_func = decorator_func(func) ---> 25 return wrapped_func(*args, **kwargs) 26 27 return impl /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py in impl(*args, **kwargs) 214 assert in_dygraph_mode( 215 ), "We Only support %s in imperative mode, please use fluid.dygraph.guard() as context to run it in imperative Mode" % func.name --> 216 return func(*args, **kwargs) 217 218 return impl /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py in to_variable(value, name, zero_copy) 565 persistable=False, 566 zero_copy=zero_copy, --> 567 name=name if name else '') 568 return py_var 569 elif isinstance(value, (core.VarBase, framework.Variable, EnforceNotMet:
C++ Call Stacks (More useful to developers):
0 std::string paddle::platform::GetTraceBackString<char const*>(char const*&&, char const*, int) 1 paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) 2 paddle::platform::GpuMemcpySync(void*, void const*, unsigned long, cudaMemcpyKind)
Error Message Summary:
ExternalError: Cuda error(4), unspecified launch failure. [Advise: An exception occurred on the device while executing a kernel. Common causes include dereferencing an invalid device pointerand accessing out of bounds shared memory. The device cannot be used until cudaThreadExit() is called. All existing device memory allocations are invalid and must be reconstructed if the program is to continue usingCUDA.] at (/paddle/paddle/fluid/platform/gpu_info.cc:281)