OpenPrompt icon indicating copy to clipboard operation
OpenPrompt copied to clipboard

forward_without_verbalize

Open vickywu1022 opened this issue 3 years ago • 0 comments

When doing prompt-learning without any verbalizer, I used forward_without_verbalize and encountered an error:

Traceback (most recent call last):
File "~/OpenPrompt/openprompt/pipeline_base.py", line 309, in forward_without_verbalize
    outputs = self.verbalizer.gather_outputs(outputs)
AttributeError: 'NoneType' object has no attribute 'gather_outputs'

I think there is no need for such gathering since we use no verbalizer here:)

vickywu1022 avatar Jul 21 '22 09:07 vickywu1022