I have Python embedded code in C++ (C Python API with Python3.9.6 and tensorflow==2.13.0, keras==2.13.1).
Python code:
model = tf.keras.Sequential()
Output:
File "./python-3.9_x86_64/lib/python3.9/site-packages/tensorflow/python/trackable/base.py", line 204, in _method_wrapper
result = method(self, *args, **kwargs)
File "./python-3.9_x86_64/lib/python3.9/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "./python-3.9_x86_64/lib/python3.9/site-packages/tensorflow/python/framework/constant_op.py", line 98, in convert_to_eager_tensor
return ops.EagerTensor(value, ctx.device_name, dtype)
tensorflow.python.framework.errors_impl.InvalidArgumentError: AttrValue missing value with expected type 'type'
for attr 'T'
; NodeDef: {{node _EagerConst}}; Op<name=_EagerConst; signature=input:T -> output:T; attr=T:type>```
`
So I can not create Sequential object