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

the layer MLP has never been called and thus has no defined output #447

Open
sparta-2024 opened this issue Aug 16, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@sparta-2024
Copy link

Describe the bug
When using tensorflow 2.16 or 2.17 to do train ,there is an error occurred:the layer MLP has never been called and thus has no defined output.
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows, Linux, iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. Samsung S20]
  • OS: [e.g. Android 11]
  • Browser [e.g. stock browser, chrome]
  • Version [e.g. 0.1.1, master]

Additional context
Add any other context about the problem here.

@sparta-2024 sparta-2024 added the bug Something isn't working label Aug 16, 2024
@sparta-2024
Copy link
Author

models.py file should be added the following code:
import os
os.environ["TF_USE_LEGACY_KERAS"] = "1"

@sparta-2024 sparta-2024 reopened this Aug 16, 2024
@isha382
Copy link

isha382 commented Aug 21, 2024

hi @sparta-2024, the issue is of the version of tensorflow you can try with 2.9.0 version which is preferred version and can refer following documentation policy for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants