Skip to content

Conversation

@millerlight
Copy link

Problem

When the attention hook receives None as the second output, an AttributeError occurs.

Solution

Added a guard clause:

if output[1] is None: return

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

Successfully merging this pull request may close these issues.

2 participants