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

layers_to_use should be a dict, not a list #49

Open
Mayukhdeb opened this issue Sep 15, 2021 · 0 comments
Open

layers_to_use should be a dict, not a list #49

Mayukhdeb opened this issue Sep 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Mayukhdeb
Copy link
Owner

instead of using:

layers_to_use = [model.layer1, model.layer2]

and then accessing them in the custom function as:

layer_outputs[0] and layer_outputs[1]

we can define layers_to_use as a dict which makes custom_func much more intuitive

layers_to_use = {
    'layer1': model.layer1, 
    'layer2': model.layer2
}

and then accessing them in the custom function as:

layer_outputs['layer2'] and layer_outputs['layer1']
@Mayukhdeb Mayukhdeb added the enhancement New feature or request label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant