DriveML Huawei Autonomous Vehicles Challenge Forum

Go back to competition Back to thread list Post in this thread

> Tensorflow error (running Tensorflow 1.5)

Hi,

After evaluating the example model, I am getting the following error:

(.venv) geroge@geroge-MacBook:~/src/starter_kit$ python3 ~/src/starter_kit/rllib_example/run.py
/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:493: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:494: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:495: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:496: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:497: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:502: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Known pipe types:
glxGraphicsPipe
(all display modules loaded.)
:device(warning): /dev/input/event5 is not readable, some features will be unavailable.
Traceback (most recent call last):
File "/home/geroge/src/starter_kit/rllib_example/run.py", line 35, in <module>
agent_policy.setup()
File "/home/geroge/src/starter_kit/rllib_example/policy.py", line 127, in setup
self._model = EvaluationModel()
File "/home/geroge/src/starter_kit/rllib_example/policy.py", line 98, in __init__
name="evaluation-model")
File "/home/geroge/src/starter_kit/.venv/lib/python3.6/site-packages/ray/rllib/models/tf/tf_modelv2.py", line 46, in __init__
if tf.executing_eagerly():
AttributeError: module 'tensorflow' has no attribute 'executing_eagerly'
Step #0.00 (0ms ?*RT. ?UPS, TraCI: 674ms, vehicles TOT 0 ACT 0 BUF 0) Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).
(.venv) geroge@geroge-MacBook:~/src/starter_kit$

Help will be appreciated.

Posted by: Team53 @ Nov. 14, 2019, 5:43 p.m.

Please use TF 1.14 as is noted in HiWay's setup.py.

Posted by: HuaweiUK @ Nov. 14, 2019, 9:47 p.m.
Post in this thread