0
當我使用tensorflow與jupyter,我有錯誤滿足:張量 '對象有沒有屬性 '形狀'
img_h,img_w,img_c=128,384,3
I_t0,I_t1,learning_rate,steering=model_input(img_h,img_w,img_c)
assert I_t0.shape.as_list()==[None,128,384,3]
assert I_t1.shape.as_list()==[None,128,384,3]
assert steering.shape.as_list()==[None,1]
誤差
AttributeError Traceback (most recent call last)
<ipython-input-11-36e96cd24088> in <module>()
1 img_h,img_w,img_c=128,384,3
2 I_t0,I_t1,learning_rate,steering=model_input(img_h,img_w,img_c)
----> 3 assert I_t0.shape.as_list()==[None,128,384,3]
4 assert I_t1.shape.as_list()==[None,128,384,3]
5 assert steering.shape.as_list()==[None,1]
AttributeError: 'Tensor' object has no attribute 'shape'
我tensorflow是0.12.I不要' t知道如何解決這個問題我的tensorflow版本有問題嗎?