Hello,
I have started to use keras very recently
I am trying to convert a julia code to a python code by using keras.
In julia, I have the following line:
Ωp_nn = Lux.Chain(Lux.Dense(1,32), Lux.Dense(32,32,tanh), Lux.Dense(32,32,tanh), Lux.Dense(32,2))
And python-keras version of this line should be:
[layers_] = [layers.Dense((1,32),activation="tanh"),layers.Dense((32,32),activation="tanh"),layers.Dense((32,32)activation="tanh"),layers.Dense((32,2),activation="tanh")]
However, I see that I am not allowed the give the shape as tuples i.e (32,32). I can only give a number/integer because I am having the following error:
int() argument must be a string, a bytes-like object or a number, not 'tuple'
Is there any way to work around it?
Thank you!