-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Unable to create functional model as slice from internal layer output if it is a Sequential model #46944
Comments
Was able to reproduce the issue with TF v2.3, TF v2.4 and TF-nightly( |
Just a side note. This works as expected (gist). Output is:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
The issue is still here, "stalled" label please |
@shkarupa-alex Seems the code is working as expected with the changes mentioned above by @AdityaKane2001. Please let us know if it is stil an issue?.Thanks! |
@saikumarchalla , changes mentioned above are not a solution but a hack. That hack can't be used always. So, i think this issue is still actual. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
System information
Describe the current behavior
I'm trying to create feature extractor for semantic segmentation model like here https://www.tensorflow.org/tutorials/images/segmentation
But my pretrained backbone built with combination of custom layers and sequential models (used as layer). Particularly it is BiT-S model from here https://github.com/google-research/big_transfer/blob/master/bit_tf2/models.py
During the feature extraction i got a
Graph disconnected
error every time i try to use Sequetial-layer output in new model.Describe the expected behavior
There should be no error
Standalone code to reproduce the issue
https://colab.research.google.com/drive/1hg4RJtux1md5zJErzG7RDCQg0ye5cmFi?usp=sharing
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: