- Create Neural Network: 238ms or 238226us
- Verify...
- Verify Graph: 34158ms or 34158841us
- Start run graph [1] times...
- Run graph the 0 time fail
- D nn_param.nbg.type=RK_NN_NBG_FILE
- D nn_param.nbg.url=data_file_name
- I Build config finished.
- --- Logging error ---
- Traceback (most recent call last):
- File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
- stream.write(msg)
- ValueError: I/O operation on closed file.
- Call stack:
- File "onnx-to-rknn.py", line 12, in <module>
- rknn.build(do_quantization=True, dataset='./dataset.txt', pre_compile=True)
- File "/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 157, in build
- ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 4092, in case
- strict=strict)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3982, in _case_helper
- predicates, n=1, msg="Input error: exclusive=True")
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3838, in _assert_at_most_n_true
- return Assert(condition, data=error_msg, summarize=len(predicates))
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 193, in wrapped
- return _add_should_use_warning(fn(*args, **kwargs))
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 168, in Assert
- guarded_assert = cond(condition, no_op, true_assert, name="AssertGuard")
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
- return func(*args, **kwargs)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2097, in cond
- orig_res_t, res_t = context_t.BuildCondBranch(true_fn)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1956, in BuildCondBranch
- result = nest.map_structure(self._BuildCondTensor, original_result)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 381, in map_structure
- structure[0], [func(*x) for x in entries])
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/nest.py", line 381, in <listcomp>
- structure[0], [func(*x) for x in entries])
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1922, in _BuildCondTensor
- return with_dependencies([v], self._pivot)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3632, in with_dependencies
- with ops.colocate_with(output_tensor):
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 323, in new_func
- instructions)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
- get_logger().warning(msg, *args, **kwargs)
- Message: 'From %s: %s (from %s) is deprecated and will be removed %s.\nInstructions for updating:\n%s'
- 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.')
- --- Logging error ---
- Traceback (most recent call last):
- File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
- stream.write(msg)
- ValueError: I/O operation on closed file.
- Call stack:
- File "onnx-to-rknn.py", line 12, in <module>
- rknn.build(do_quantization=True, dataset='./dataset.txt', pre_compile=True)
- File "/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 157, in build
- ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 4092, in case
- strict=strict)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 3984, in _case_helper
- return fn()
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
- return func(*args, **kwargs)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2097, in cond
- orig_res_t, res_t = context_t.BuildCondBranch(true_fn)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 1941, in BuildCondBranch
- original_result = fn()
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 323, in new_func
- instructions)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
- get_logger().warning(msg, *args, **kwargs)
- Message: 'From %s: %s (from %s) is deprecated and will be removed %s.\nInstructions for updating:\n%s'
- 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 ")
- --- Logging error ---
- Traceback (most recent call last):
- File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
- stream.write(msg)
- ValueError: I/O operation on closed file.
- Call stack:
- File "onnx-to-rknn.py", line 12, in <module>
- rknn.build(do_quantization=True, dataset='./dataset.txt', pre_compile=True)
- File "/home/yaowei/.local/lib/python3.6/site-packages/rknn/api/rknn.py", line 157, in build
- ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 506, in new_func
- instructions)
- File "/home/yaowei/.local/lib/python3.6/site-packages/tensorflow/python/platform/tf_logging.py", line 166, in warning
- get_logger().warning(msg, *args, **kwargs)
- Message: 'From %s: calling %s (from %s) with %s is deprecated and will be removed %s.\nInstructions for updating:\n%s'
- 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`.')
- done
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |