MousaviSajad / ECG-Heartbeat-Classification-seq2seq-model

Inter- and intra- patient ECG heartbeat classification for arrhythmia detection: a sequence to sequence deep learning approach
Other
179 stars 54 forks source link

Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64 #8

Open elhazz opened 3 years ago

elhazz commented 3 years ago

Hello First of all, congratulation on your model. I tried to run it and have some issues.

on the reshape section I have this error, and cannot figure out how to resolve it. inputs = tf.reshape(inputs, [-1, n_channels, input_depth / n_channels])

Error: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64

Thank you for any help

MousaviSajad commented 3 years ago

Hello,

I think you can change inputs = tf.reshape(inputs, [-1, n_channels, input_depth / n_channels]) to inputs = tf.reshape(inputs, [-1, n_channels, int(input_depth / n_channels])) to fix it. Regards, Sajad

On Thu, May 13, 2021 at 9:24 AM elhazz @.***> wrote:

Hello First of all, congratulation on your model. I tried to run it and have some issues.

on the reshape section I have this error, and cannot figure out how to resolve it. inputs = tf.reshape(inputs, [-1, n_channels, input_depth / n_channels])

Error: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64

Thank you for any help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MousaviSajad/ECG-Heartbeat-Classification-seq2seq-model/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4D7SMNR6IKCMFKWSLMYIDTNPHJDANCNFSM442RQV7A .