Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • Issue
  • #21385

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 11月 27, 2019 by saxon_zh@saxon_zhGuest

batch_norm添加is_test参数后报错,(原先正常运行)

Created by: PointCloudNiphon

System information -PaddlePaddle version 1.6.1 -CPU: Inter(R) Xeon(R) E-2176M -GPU: Quadro P3200, CUDA Version: 10.1,cuDNN Version: 7.6. -OS Platform (eg.Mac OS 10.14) win10 -Python version:3.7

all happens afer I add is_test=True to fluid.layers.batch_norm......... logs likes this:

EnforceNotMet Traceback (most recent call last) in () 60 train_cost, train_acc = exe.run(program=fluid.default_main_program(),#运行主程序 61 feed=feeder.feed(data), #给模型喂入数据 ---> 62 fetch_list=[avg_cost, acc]) #fetch 误差、准确率
63 64 all_train_iter=all_train_iter+BATCH_SIZE

D:\Anaconda3\lib\site-packages\paddle\fluid\executor.py in run(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache) 773 warnings.warn( 774 "The following exception is not an EOF exception.") --> 775 six.reraise(*sys.exc_info()) 776 777 def _run_impl(self, program, feed, fetch_list, feed_var_name,

D:\Anaconda3\lib\site-packages\six.py in reraise(tp, value, tb) 691 if value.traceback is not tb: 692 raise value.with_traceback(tb) --> 693 raise value 694 finally: 695 value = None

D:\Anaconda3\lib\site-packages\paddle\fluid\executor.py in run(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache) 768 scope=scope, 769 return_numpy=return_numpy, --> 770 use_program_cache=use_program_cache) 771 except Exception as e: 772 if not isinstance(e, core.EOFException):

D:\Anaconda3\lib\site-packages\paddle\fluid\executor.py in _run_impl(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache) 815 scope=scope, 816 return_numpy=return_numpy, --> 817 use_program_cache=use_program_cache) 818 819 program._compile(scope, self.place)

D:\Anaconda3\lib\site-packages\paddle\fluid\executor.py in _run_program(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache) 892 if not use_program_cache: 893 self._default_executor.run(program.desc, scope, 0, True, True, --> 894 fetch_var_name) 895 else: 896 self._default_executor.run_cached_prepared_ctx(ctx, scope, False,

EnforceNotMet:


C++ Call Stacks (More useful to developers):

Windows not support stack backtrace yet.


Python Call Stacks (More useful to users):

File "D:\Anaconda3\lib\site-packages\paddle\fluid\framework.py", line 2459, in append_op attrs=kwargs.get("attrs", None)) File "D:\Anaconda3\lib\site-packages\paddle\fluid\layer_helper.py", line 43, in append_op return self.main_program.current_block().append_op(*args, **kwargs) File "D:\Anaconda3\lib\site-packages\paddle\fluid\layers\nn.py", line 4331, in batch_norm "use_global_stats": use_global_stats File "", line 116, in ModelBlendding hidden3_ = fluid.layers.batch_norm(input=hidden6,is_test=True,param_attr = param_attrs,bias_attr = param_attrs) File "", line 11, in predict = ModelBlendding(C,S,L) File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2903, in run_ast_nodes if self.run_code(code, result): File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2785, in _run_cell interactivity=interactivity, compiler=compiler, result=result) File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2662, in run_cell raw_cell, store_history, silent, shell_futures) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel\zmqshell.py", line 533, in run_cell return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel\ipkernel.py", line 196, in do_execute res = shell.run_cell(code, store_history=store_history, silent=silent) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelbase.py", line 399, in execute_request user_expressions, allow_stdin) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelbase.py", line 235, in dispatch_shell handler(stream, idents, msg) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelbase.py", line 283, in dispatcher return self.dispatch_shell(stream, msg) File "D:\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper return fn(*args, **kwargs) File "D:\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 432, in _run_callback callback(*args, **kwargs) File "D:\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 480, in _handle_recv self._run_callback(callback, msg) File "D:\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 450, in _handle_events self._handle_recv() File "D:\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 536, in self.io_loop.add_callback(lambda : self._handle_events(self.socket, 0)) File "D:\Anaconda3\lib\site-packages\tornado\stack_context.py", line 277, in null_wrapper return fn(*args, **kwargs) File "D:\Anaconda3\lib\site-packages\tornado\ioloop.py", line 605, in _run_callback ret = callback() File "D:\Anaconda3\lib\site-packages\tornado\ioloop.py", line 832, in start self._run_callback(self._callbacks.popleft()) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel\kernelapp.py", line 477, in start ioloop.IOLoop.instance().start() File "D:\Anaconda3\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance app.start() File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\ipykernel_launcher.py", line 16, in app.launch_new_instance() File "D:\Anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec)


Error Message Summary:

PaddleCheckError: holder_ should not be null Tensor holds no memory. Call Tensor::mutable_data first. at [D:\1.6.1\paddle\paddle\fluid\framework\tensor.cc:23] [operator < batch_norm_grad > error]

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle#21385
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7