TensorFlow
JF-Expert Member
- Feb 11, 2020
- 993
- 1,286
OK hua kunakuwaga na slightly changes from different version za python so make sure your python version is up to data and iwe python3.xThis Python code raises an Attribute Error: 'list' object has no attribute 'shape'.
Select it, copy and paste it here Programming and Computing with Python Right from the Forum to run and explore it. Do you have a fix for the error?
Thank you.
tf
Test code hapo uone, Python version ni 3.8+.OK hua kunakuwaga na slightly changes from different version za python so make sure your python version is up to data and iwe python3.x
All required libraries are installed and imported. Lists do not have an attribute shape, true, but the code seems to use numpy arrays.make sure you have your libraries and packages correctly installed and regarding the error python is telling you that in that particular list there is no existence of an object named shape so make sure the list contains that object
Okay nitatestCan you spot where the problem is, and what is the fix?