Skip to content

textgrad.optimizer.optimizer_prompts.py lacks one argument for class TextualGradientDescentwithMomentum(Optimizer) #157

@Zixind

Description

@Zixind

In class TextualGradientDescentwithMomentum(Optimizer): for def _update_prompt(self, variable: Variable, momentum_storage_idx: int):
the function does not return anything. It needs to have "return prompt" otherwise in step(self), prompt_update_parameter = self._update_prompt(parameter, momentum_storage_idx=idx), prompt_update_parameter would be null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions