سلام . کد زیر را نوشتن خطا دریافت کردم لطفا راهنمایی کنید.
a = np.array( [
[[1,2,1,2],
[3,4,3,4]
],
[[1, 2,1,2],
[3, 4,3,4]
]
])
b = K.mean(a,axis=1)
print(b)
خطا:
if x.dtype.base_dtype == tf.bool:
AttributeError: 'numpy.dtype' object has no attribute 'base_dtype'