最近在windows上运行tensorflow的时候,出现很多stderr 的信息,干扰了正常的输出;所以我们需要使用操作把这些输出屏蔽:

参考链接:https://support.microsoft.com/en-us/help/110930/redirecting-error-messages-from-command-prompt-stderr-stdout 

总结:

  • 重定向错误输出:dir file.xxx 2> nul 
  • 重定向到文件:dir file.xxx > output.msg 2> output.err 
  • 重定向到标准输出:dir file.xxx 1> output.msg 2>&1 

保持更新,转载请注明出处;更多内容请关注cnblogs.com/xuyaowen;

相关文章:

  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案