Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this example code do not work with tensorflow 2 #6

Open
TonyFly3000 opened this issue Nov 20, 2019 · 1 comment
Open

this example code do not work with tensorflow 2 #6

TonyFly3000 opened this issue Nov 20, 2019 · 1 comment

Comments

@TonyFly3000
Copy link

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
Copy link
Owner

dfalbel commented Nov 20, 2019

Yeah, TF2 have removed all contrib packages.

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

  • decode_wav is now tf$audio$decode_wav
  • audio_spectogram is now tf$signal$stft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants