trying to change the shape of dense1 tensor layer from (None, 13) to (None, 1, 13)
code snippet
dense1= Dense(13, activation='relu')
tf.expand_dims(dense1, axis=1)
And this is the error
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-82c32af7a088> in <module>()
----> 1 tf.expand_dims(dense1, axis=1)
10 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/constant_op.py in convert_to_eager_tensor(value, ctx, dtype)
96 dtype = dtypes.as_dtype(dtype).as_datatype_enum
97 ctx.ensure_initialized()
---> 98 return ops.EagerTensor(value, ctx.device_name, dtype)
99
100
ValueError: Attempt to convert a value (<tensorflow.python.keras.layers.core.Dense object at 0x7f58f41d9b00>) with an unsupported type (<class 'tensorflow.python.keras.layers.core.Dense'>) to a Tensor.