We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
all the layer outputs can be stored in a dict instead of a list.
it could look like:
layer_outputs = { '__input_image__': input_image_tensor, 'conv3.branch1': some_tensor, 'fc': another_tensor }
and custom_func might look like:
custom_func
def custom_func(outs): loss = outs['conv3.branch1'][:100] + outs['fc'] + torch.var(outs['__input_image__']) return -loss
The text was updated successfully, but these errors were encountered:
No branches or pull requests
all the layer outputs can be stored in a dict instead of a list.
it could look like:
and
custom_func
might look like:The text was updated successfully, but these errors were encountered: