dfalbel / speech-keras

Code for the blog post "Simple Audio Classification with Keras"
https://blogs.rstudio.com/tensorflow/posts/2018-06-06-simple-audio-classification-keras/
11 stars 14 forks source link

this example code do not work with tensorflow 2 #6

Open TonyFly3000 opened 4 years ago

TonyFly3000 commented 4 years ago

I try to follow this post https://blogs.rstudio.com/tensorflow/posts/2018-06-06-simple-audio-classification-keras/

But the code no longer work with tensorflow 2. It show error start from this line audio_ops <- tf$contrib$framework$python$ops$audio_ops

I down grade the tensorflow 1.x and it fine.

dfalbel commented 4 years ago

Yeah, TF2 have removed all contrib packages.

You need to find where they were moved to. For example: