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

Replacing a block of layers #10

Open
nscotto opened this issue Feb 23, 2021 · 0 comments
Open

Replacing a block of layers #10

nscotto opened this issue Feb 23, 2021 · 0 comments

Comments

@nscotto
Copy link

nscotto commented Feb 23, 2021

Hi,

I am writing a module for searching and replacing a block of layers.
I am struggling at the moment to find how to reconnect everything so I wanted to ask you whether if you could kindly give me some directions with it.

So basically I have tf.keras.Model, I have found the block to replace, I know it's old_block_layer_start, old_block_layer_end, and I have a new block, coming up as a tf.keras.Model for making things simpler, or maybe else as a tuple new_block_layer_start, new_block_layer_end.

I am trying to understand the mask part of your project and whether that's necessary for me or not.

Currently I have been able to replace the head of a model by a new block (only connection from model to new block input), but haven't been successfull in replacing the middle of a model (connection from model to new block input, then new block output to model), I am only replacing things like node.outbound_layers and node.inbound_layers.

Thank you for reading.

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

1 participant