Not a Bot
Not a Bot
Pytorch has removed the function `zero_gradients`. Redefining the same for forward compatibility. ```python def zero_gradients(x): if isinstance(x, torch.Tensor): if x.grad is not None: x.grad.detach_() x.grad.zero_() elif isinstance(x, collections.abc.Iterable): for elem...
Pytorch has removed the function `zero_gradients`. Redefining the same for forward compatibility. ```python def zero_gradients(x): if isinstance(x, torch.Tensor): if x.grad is not None: x.grad.detach_() x.grad.zero_() elif isinstance(x, collections.abc.Iterable): for elem...
Added MCP Playground - https://github.com/rosaboyle/mcp-playground Supports STDIO and SSE server. (Streamable HHTP coming soon) LLM INtegrations with Fireworks and Groq. Screenshots:  ...