MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / get_gradient_text

Method get_gradient_text

src/optimizer/textgrad/variable.py:146–149  ·  view source on GitHub ↗

Aggregates and returns the gradients on a variable.

(self)

Source from the content-addressed store, hash-verified

144 return self.grad_fn
145
146 def get_gradient_text(self) -> str:
147 """Aggregates and returns the gradients on a variable."""
148
149 return "\n".join([g.value for g in self.gradients])
150
151 def backward(self, engine: EngineLM = None):
152 """

Callers 15

generate_graphMethod · 0.45
_backward_idempotentFunction · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45
backwardMethod · 0.45

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected