textgrad.optimizer.optimizer_prompts.py lacks one argument for class TextualGradientDescentwithMomentum(Optimizer) · Issue #157 · zou-group/textgrad · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: