Toybrick

权重转换时出现的logging error

yaowei

中级会员

积分
375
楼主
发表于 2019-6-4 12:36:02    查看: 8102|回复: 2 | [复制链接]    打印 | 只看该作者
权重转换后出现的一些logging error,不知道有什么影响?

  1. Create Neural Network: 238ms or 238226us
  2. Verify...
  3. Verify Graph: 34158ms or 34158841us
  4. Start run graph [1] times...
  5. Run graph the 0 time fail
  6. D nn_param.nbg.type=RK_NN_NBG_FILE
  7. D nn_param.nbg.url=data_file_name
  8. I Build config finished.
  9. --- Logging error ---
  10. Traceback (most recent call last):
  11.   File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
  12.     stream.write(msg)
  13. ValueError: I/O operation on closed file.
  14. Call stack:
  15.   File "onnx-to-rknn.py", line 12, in <module>
  16.     rknn.build(do_quantization=True, dataset='./dataset.txt', pre_compile=True)
  17.   File "/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 157, in build
  18.     ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
  19.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 4092, in case
  20.     strict=strict)
  21.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3982, in _case_helper
  22.     predicates, n=1, msg="Input error: exclusive=True")
  23.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3838, in _assert_at_most_n_true
  24.     return Assert(condition, data=error_msg, summarize=len(predicates))
  25.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 193, in wrapped
  26.     return _add_should_use_warning(fn(*args, **kwargs))
  27.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 168, in Assert
  28.     guarded_assert = cond(condition, no_op, true_assert, name="AssertGuard")
  29.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
  30.     return func(*args, **kwargs)
  31.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2097, in cond
  32.     orig_res_t, res_t = context_t.BuildCondBranch(true_fn)
  33.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1956, in BuildCondBranch
  34.     result = nest.map_structure(self._BuildCondTensor, original_result)
  35.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 381, in map_structure
  36.     structure[0], [func(*x) for x in entries])
  37.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 381, in <listcomp>
  38.     structure[0], [func(*x) for x in entries])
  39.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1922, in _BuildCondTensor
  40.     return with_dependencies([v], self._pivot)
  41.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3632, in with_dependencies
  42.     with ops.colocate_with(output_tensor):
  43.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 323, in new_func
  44.     instructions)
  45.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
  46.     get_logger().warning(msg, *args, **kwargs)
  47. Message: 'From %s: %s (from %s) is deprecated and will be removed %s.\nInstructions for updating:\n%s'
  48. Arguments: ('/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py:3632', 'colocate_with', 'tensorflow.python.framework.ops', 'in a future version', 'Colocations handled automatically by placer.')
  49. --- Logging error ---
  50. Traceback (most recent call last):
  51.   File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
  52.     stream.write(msg)
  53. ValueError: I/O operation on closed file.
  54. Call stack:
  55.   File "onnx-to-rknn.py", line 12, in <module>
  56.     rknn.build(do_quantization=True, dataset='./dataset.txt', pre_compile=True)
  57.   File "/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 157, in build
  58.     ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
  59.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 4092, in case
  60.     strict=strict)
  61.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3984, in _case_helper
  62.     return fn()
  63.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
  64.     return func(*args, **kwargs)
  65.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2097, in cond
  66.     orig_res_t, res_t = context_t.BuildCondBranch(true_fn)
  67.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1941, in BuildCondBranch
  68.     original_result = fn()
  69.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 323, in new_func
  70.     instructions)
  71.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
  72.     get_logger().warning(msg, *args, **kwargs)
  73. Message: 'From %s: %s (from %s) is deprecated and will be removed %s.\nInstructions for updating:\n%s'
  74. Arguments: ('/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py:1941', 'py_func', 'tensorflow.python.ops.script_ops', 'in a future version', "tf.py_func is deprecated in TF V2. Instead, use\n    tf.py_function, which takes a python function which manipulates tf eager\n    tensors instead of numpy arrays. It's easy to convert a tf eager tensor to\n    an ndarray (just call tensor.numpy()) but having access to eager tensors\n    means `tf.py_function`s can use accelerators such as GPUs as well as\n    being differentiable using a gradient tape.\n    ")
  75. --- Logging error ---
  76. Traceback (most recent call last):
  77.   File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
  78.     stream.write(msg)
  79. ValueError: I/O operation on closed file.
  80. Call stack:
  81.   File "onnx-to-rknn.py", line 12, in <module>
  82.     rknn.build(do_quantization=True, dataset='./dataset.txt', pre_compile=True)
  83.   File "/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 157, in build
  84.     ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
  85.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 506, in new_func
  86.     instructions)
  87.   File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
  88.     get_logger().warning(msg, *args, **kwargs)
  89. Message: 'From %s: calling %s (from %s) with %s is deprecated and will be removed %s.\nInstructions for updating:\n%s'
  90. Arguments: ('/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py:157', 'dropout', 'tensorflow.python.ops.nn_ops', 'keep_prob', 'in a future version', 'Please use `rate` instead of `keep_prob`. Rate should be set to `rate = 1 - keep_prob`.')
  91. done
复制代码


回复

使用道具 举报

jefferyzhang

版主

积分
13669
沙发
发表于 2019-6-4 17:34:00 | 只看该作者
没影响,版本旧了,你用1.0.0就不会有这些了
回复

使用道具 举报

yaowei

中级会员

积分
375
板凳
 楼主| 发表于 2019-6-5 16:11:37 | 只看该作者
用的就是1.0.0,目前跑着貌似还可以,来确认一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表